wrong browser language in javascript
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
epiphany-browser (Ubuntu) |
Invalid
|
Low
|
Unassigned | ||
xulrunner-1.9 (Ubuntu) |
Invalid
|
Low
|
Unassigned |
Bug Description
Binary package hint: epiphany-browser
Even if i've set italian as my default language the Javascript variable navigator.language is always 'en'.
This cause some italian sites show their english version to me rather then their default home page.
See for example www.beppegrillo.it, probably the most famous and visited italian blog.
Also putting an onload Javascript function like this:
var language = '';
if (navigator.appName == 'Netscape')
language = navigator.language;
else
language = navigator.
if(language != 'X') show_english_
appears to be a common pratice.
To reproduce the bug set italian language in preferences (i've not tested the behaviour with different languages) and open an html page containing:
<HTML>
<SCRIPT language=
function test()
{
var language = '';
if (navigator.appName == 'Netscape')
language = navigator.language;
else
language = navigator.
var fRet;
alert('language = ' + language);
}
</SCRIPT>
<BODY>
<a href=javascript
</BODY>
</HTML>
Then click the link.
Other info:
release
Description: Ubuntu 8.04
Release: 8.04
epiphany version: 2.22.1.1 gecko-1.9
ProblemType: Bug
Architecture: i386
Date: Tue May 20 18:06:23 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/
NonfreeKernelMo
Package: epiphany-gecko 2.22.1.1-0ubuntu1
PackageArchitec
ProcEnviron:
PATH=/
LANG=it_IT.UTF-8
SHELL=/bin/bash
SourcePackage: epiphany-browser
Uname: Linux 2.6.24-16-generic i686
thank you for your bug report, could you try using firefox 3 and comment on whether is has the same issue?