07-03-2011, 04:27 AM
[eluser]ev0c[/eluser]
Hi,
i'm using CIs Language class / helper for providing a multilanguage website. Everything works fine when i load the language files i need in every controller.
But i have some lang files i don't want to load every time because they should be avaiable globally. Therfore i autoloaded (autoload.php) these.
I thought becauseis changing the core language (form_validation ...) it would also autoload the specific language file in the other given language. But that's not the case -> it remains in the language like it was before the language change.
Am i doing something wrong?
Hi,
i'm using CIs Language class / helper for providing a multilanguage website. Everything works fine when i load the language files i need in every controller.
But i have some lang files i don't want to load every time because they should be avaiable globally. Therfore i autoloaded (autoload.php) these.
I thought because
Code:
$this->->config->set_item('language', $lang);
Am i doing something wrong?