desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #38400
[Bug 232259] wrong browser language in javascript
We are closing this bug report because it lacks the information we need
to investigate the problem, as described in the previous comments.
Please reopen it if you can give us the missing information, and don't
hesitate to submit bug reports in the future. To reopen the bug report
you can click on the current status, under the Status column, and change
the Status back to New. Thanks again!.
** Changed in: epiphany-browser (Ubuntu)
Status: Incomplete => Invalid
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to epiphany-browser in Ubuntu.
https://bugs.launchpad.net/bugs/232259
Title:
wrong browser language in javascript
Status in “epiphany-browser” package in Ubuntu:
Invalid
Status in “xulrunner-1.9” package in Ubuntu:
Confirmed
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.browserLanguage;
if(language != 'X') show_english_version
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=JavaScript>
function test()
{
var language = '';
if (navigator.appName == 'Netscape')
language = navigator.language;
else
language = navigator.browserLanguage;
var fRet;
alert('language = ' + language);
}
</SCRIPT>
<BODY>
<a href=javascript:test(); >show language</a>
</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/epiphany-gecko
NonfreeKernelModules: nvidia
Package: epiphany-gecko 2.22.1.1-0ubuntu1
PackageArchitecture: i386
ProcEnviron:
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
LANG=it_IT.UTF-8
SHELL=/bin/bash
SourcePackage: epiphany-browser
Uname: Linux 2.6.24-16-generic i686
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/epiphany-browser/+bug/232259/+subscriptions