[eluser]khagendra[/eluser]
Here are the few steps that u have to follow to load the language variabbles.
1. In application/language, crate a folder for example english
now the folder is application/language/english
In this folder u have to create a file with name ended with _lang.
for example test_lang.php
now suppose there is a variable like
Quote: $lang['welcome']="welcome to site";
2. now you have to load the language file in a controller
Code:
class Home extends Controller {
function Home()
{
parent::Controller();
// loading language file
$this->lang->load('test', 'english');
}
}
while loading the language file just use file name without _lang.php. here i have used test rather than test_lang.php. the second parameter is language name(better say the folder name. here i have used english as the file test_lang.php is inside this folder.
3. check the config/donfig.php for $config['language'] = "english";
4. now to document your language variable use like this
Quote: $this->lang->line('welcome');