Welcome Guest, Not a member yet? Register   Sign In
Two different languages at the same time
#1

[eluser]Unknown[/eluser]
I have shared content for all languages (same keywords, same values). So I'd like to keep this data in one place. For that I've created language called shared.

Now I'd like to load two lang_files from different languages:

Code:
$this->lang->load('interface', 'english');
$this->lang->load('interface', 'shared');

unfortunately it loads only english but not shared.

English and shared contains different keywords !
#2

[eluser]ShiverCube[/eluser]
What you are asking makes little sense. A language file should contain data specific to one language.

But if you must, just add an include statement in each of the language files. So for the english.php language file:
Code:
include(APPPATH.'language/shared/interface'.EXT);

$lang...

Then you only have to load the one language (as you should do anyway):
Code:
$this->lang->load('interface', 'english');
#3

[eluser]Unknown[/eluser]
Thanks.. Smile




Theme © iAndrew 2016 - Forum software by © MyBB