Menu ▾ ▴

#5 Changing languages bug

open
nobody
None
5
2012-12-21
2007-03-21
No

When attempting to switch to a different language via the "home" page of OSP, you will get a "file not found" error.

To fix this, modify the file include/language_box.php:

in line 10 replace:

<SELECT name="newlang" onChange="javascript:changelang(top.location.href=this.options[this.selectedIndex].value)">

with:

<SELECT name="newlang" onChange="javascript:changelang("newLang="+this.options[this.selectedIndex].value)">

(all in one line).

Reason:

mainfile.php (used by home.php) expects the parameter "newLang" to contain the selected new language, in order to set the cookie correctly. That's all there is to it - you do not need to change the top.location.href here.

Versions affected:

I've chechked this both in the versions

OSP04X20070126.tar.gz as well as
OSP04X20060215.zip

so the error seems to be perpetuating itself for quite some time already.

Sidenote on the translations: both the Japanese as well as the Chinese language files do not seem to be complete - not all strings show up translated...

Discussion

  • From a2b Consulting

    Modified language_box.php to counter this error