Welcome Guest, Not a member yet? Register   Sign In
Problem in language load()
#2

[eluser]starbbs[/eluser]
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:

Code:
if (in_array($langfile, $this->is_loaded, TRUE))
{
  return;
}

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:

Code:
$this->is_loaded[] = $langfile;

change to:

Code:
$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



Theme © iAndrew 2016 - Forum software by © MyBB