Multiple lang - 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: Multiple lang (/showthread.php?tid=51660) |
Multiple lang - El Forum - 05-12-2012 [eluser]Gabi3xz[/eluser] I want to use multiple lang directly from system\language, and I want to add new file(general_lang.php) with language_key. how can I used language_key from general_lang.php without adding on all pages "$this->lang->load('filename', 'language');" where must be added page general_lang.php to work? Multiple lang - El Forum - 05-12-2012 [eluser]vrencianz[/eluser] Modify your config/autoload.php as follows Code: $autoload['language'] = array('general'); Multiple lang - El Forum - 05-14-2012 [eluser]Gabi3xz[/eluser] Example i have language_key $lang['success_login'] = "Success login."; How call to display on view? |