change default language at runtime ? |
Hi,
is it possible to change the default language at runtime and automatically reload all language files that are declared in the autoload property ? thanks.
I don't think you can automatically reload the language files, so you have to set the language before the language files are loaded.
Otherwise, you could loop through $this->lang->is_loaded to determine which files have been loaded (and reload them with the new language idiom).
(03-23-2015, 07:29 AM)mwhitney Wrote: I don't think you can automatically reload the language files, so you have to set the language before the language files are loaded. Hi, thanks for the answer. Indeed using $this->lang->is_loaded works fine for me. thank you !
(03-23-2015, 07:29 AM)mwhitney Wrote: I don't think you can automatically reload the language files, so you have to set the language before the language files are loaded. Why is this property not documented ?
It looks like I'll have to pay a little more attention to the documentation. I wouldn't have mentioned it if it was set as a protected property or marked as deprecated in the code.
|
Welcome Guest, Not a member yet? Register Sign In |