[eluser]mick_sp[/eluser]
I've been trying to get this to work, but it didn't. Of course extending the core Language-class is de cleanest solution, but when i didn't get that to work (i think there's some $this/$CI mixup in there somewhere) i just added an extra parameter to the Language->load method (i, know, i know, never change the core files) like so:
Code:
function load($langfile = '', $idiom = '', $return = FALSE, $force=false) {
$langfile = str_replace(EXT, '', str_replace('_lang.', '', $langfile)).'_lang'.EXT;
if(!$force){
if (in_array($langfile, $this->is_loaded, TRUE)){
return;
}
}
...
... rest of the method ...
}
I'd like a cleaner way of doing this, in fact i propose to do something like this in the future core files. I think its a bug that the class thinks the file is loaded when in fact it is loaded in a different language. (if there's one thing a language class should do, that would be knowing which language is loaded, not just which file

)
Michaƫl