Problems With Languages - 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: Problems With Languages (/showthread.php?tid=55128) |
Problems With Languages - El Forum - 10-11-2012 [eluser]CodeIgniterNewbie[/eluser] I'm trying to make my site multi-lingual. I've created 2 folders and 2 files so far: Code: /application/language/en-us/ Code: $lang['lang_company_name'] = 'Hello'; // en-us Code: $this->lang->load('application', 'en-us'); Code: HelloHello Code: HelloWorld UPDATE: autoload.php has nothing for $autoload['language']. config.php still has $config['language'] = 'english'. Problems With Languages - El Forum - 10-11-2012 [eluser]Aken[/eluser] Your example works fine for me. What version of CI are you using? Have you made sure that the language files are actually different, and your directory and file names are correct? You can also try enabling logging and seeing that both files are loaded properly (or check the results of $this->lang->load() also). Problems With Languages - El Forum - 10-12-2012 [eluser]TonySpace.com[/eluser] [quote author="Aken" date="1350017022"]Your example works fine for me. What version of CI are you using? Have you made sure that the language files are actually different, and your directory and file names are correct? You can also try enabling logging and seeing that both files are loaded properly (or check the results of $this->lang->load() also).[/quote] Yes. Cool. |