[Bug 240533] Re: Website is not shown in the correct language

Franz Seidl website at franzseidl.de
Wed Jul 9 16:46:41 UTC 2008


www.beppegrillo.it uses the following Javascript-Code:
--- JavaScript begin ---
 var language = '';
 if (navigator.appName == 'Netscape')
    language = navigator.language;
 else
    language = navigator.browserLanguage;

 //Se la lingua NON è l'italiano, mostra la pagina in Inglese
 if (language.indexOf('it') > -1) 
;
 else 
document.location.href = 'english.php';
--- JavaScript end ---

navigator.language is in my installation always 'de' (Germany). It don't change even when I edit my prefered languages in Firefox.
What's the definition of navigator.language? The GUI-Language?!

-- 
Website is not shown in the correct language
https://bugs.launchpad.net/bugs/240533
You received this bug notification because you are a member of Mozilla
Bugs, which is subscribed to firefox-3.0 in ubuntu.




More information about the Ubuntu-mozillateam-bugs mailing list