Welcome Guest, Not a member yet? Register   Sign In
Problems With Languages
#1

[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/
/application/language/en-us/application_lang.php
/application/language/fr-ca/
/application/language/fr-ca/application_lang.php
In the language files, I have the following declarations:
Code:
$lang['lang_company_name'] = 'Hello'; // en-us
$lang['lang_company_name'] = 'World'; // fr-ca
Then my test code:
Code:
$this->lang->load('application', 'en-us');
echo $this->lang->line('lang_company_name');
$this->lang->load('application', 'fr-ca');
echo $this->lang->line('lang_company_name');
The output is:
Code:
HelloHello
. Why am I not getting
Code:
HelloWorld
?

UPDATE:

autoload.php has nothing for $autoload['language']. config.php still has $config['language'] = 'english'.


Messages In This Thread
Problems With Languages - by El Forum - 10-11-2012, 07:23 AM
Problems With Languages - by El Forum - 10-11-2012, 09:43 PM
Problems With Languages - by El Forum - 10-12-2012, 01:37 AM



Theme © iAndrew 2016 - Forum software by © MyBB