Welcome Guest, Not a member yet? Register   Sign In
Changing language on the fly
#1

[eluser]PoWah[/eluser]
I have autoloaded one language file in autoload.php:
Code:
$autoload['language'] = array('application');

There are in this file common constants that I need in my application permanently.
How I can change language on the fly? Tried
Code:
$this->config->set_item('language', 'nl');
but it didn't work :/ CI still outputs default language lines
#2

[eluser]tonanbarbarian[/eluser]
If you reload the language file specifying a new language at run time (rather than in autoload) it will overwrite the current language elements.

Language Class

so try
Code:
$this->lang->load('application', 'nl');




Theme © iAndrew 2016 - Forum software by © MyBB