• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem in language load()

After a quick look at the new version, i saw that there is still a loading problem inside the language file. This prevents to load a new language after a language was already loaded. Say someone in his preferences, has setup to load the english language. Online, he decided to switch to german, than the load() function prevents that:

if (in_array($langfile, $this->is_loaded, TRUE))

This code checks if a language file was already loaded. If so, it returns.

A possible simple fix is to add the directory name into the is_loaded() array. This way you can change directory's.

so in stead:

$this->is_loaded[] = $langfile;

change to:

$this->is_loaded[] = $idiom.'/'.$langfile;

Messages In This Thread
Problem in language load() - by El Forum - 07-19-2007, 09:27 AM
Problem in language load() - by El Forum - 07-19-2007, 09:40 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.