![]() |
Changing language on the fly - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Changing language on the fly (/showthread.php?tid=4890) |
Changing language on the fly - El Forum - 12-21-2007 [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'); Changing language on the fly - El Forum - 12-21-2007 [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'); |