I'm trying to make my site multi-lingual. I've created 2 folders and 2 files so far:
/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:
$lang['lang_company_name'] = 'Hello'; // en-us
$lang['lang_company_name'] = 'World'; // fr-ca
Then my test 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: HelloHello
. Why am I not getting HelloWorld
?
UPDATE:
- autoload.php has nothing for
$autoload['language']
. - config.php still has
$config['language'] = 'english'