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

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:

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

unfortunately it loads only english but not shared.

English and shared contains different keywords !

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:


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

Thanks.. Smile

Theme © iAndrew 2016 - Forum software by © MyBB