Welcome Guest, Not a member yet? Register   Sign In
Languages
#2

[eluser]tomcode[/eluser]
Welcome xptohacking,

You need to set the language before You load language files.

You cannot load several versions of the same language file (say english/my_lang.php and french/my_lang.php).

The second parameter of $this->lang->load() allows You only to load a file in another language than specified in the configuration.

If You want to use several versions of the same language file, You need to set the third param of $this->lang->load(), but this won't 'load' the strings for use with $this->lang->line(), it will return the strings :

Code:
$english_strings = $this->lang->load('my_lang', 'english', true);

$french_strings = $this->lang->load('my_lang', 'french', true);


Messages In This Thread
Languages - by El Forum - 02-08-2010, 08:08 AM
Languages - by El Forum - 02-08-2010, 10:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB