Website is not shown in the correct language

Bug #240533 reported by manolo
4
Affects Status Importance Assigned to Milestone
firefox-3.0 (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: firefox-3.0

I'm trying to load www.beppegrillo.it expecting it should appear in Italian language but it loads http://www.beppegrillo.it/english.php instead.
I opened
  Edit -> Preferences -> Content
and clicked on "Choose" from the Languages section. So I added Italian language and removed English [UK] and English [US] languages. I cleared my private data and also cleared the cache. So I restarted Firefox and tried to load that page again but the problem persist.

The problem existed already in the previous version of Firefox from 2 to 3. It's a problem for both Firefox on Windows XP and Linux Ubuntu. Internet Explorer 7 loads it correctly.

ProblemType: Bug
Architecture: i386
Date: Tue Jun 17 00:16:39 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: fglrx
Package: firefox-3.0 3.0~rc1+nobinonly-0ubuntu0.8.04.1
PackageArchitecture: i386
ProcEnviron:
 PATH=/home/username/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: firefox-3.0
Uname: Linux 2.6.24-18-generic i686

Tags: apport-bug
Revision history for this message
manolo (mac-man2005) wrote :
Revision history for this message
Maurizio Moriconi (bugman) wrote :

I suppose there is a problem with website, because with same configuration debian.org, palm.com works in italian.

Revision history for this message
manolo (mac-man2005) wrote :

www.palm.com comes out in chinese to me, not in italian. It do works for www.debian.com

Revision history for this message
Franz Seidl (franz-s) wrote :

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?!

Revision history for this message
Franz Seidl (franz-s) wrote :

http://developer.mozilla.org/en/docs/DOM:window.navigator.language says "Returns a string representing the language version of the browser. ". Therefore Firefox works correct on my PC.

manolo, which language has your Firefox? Italian or English?

Franz Seidl (franz-s)
Changed in firefox-3.0:
status: New → Incomplete
Revision history for this message
manolo (mac-man2005) wrote :

Ubuntu 8.04 and Firefox 3.0 are shown in English, even if my Firefox -> Edit -> Preferences -> Content -> Language ->Choose

is set to Italian and Italian is the only language in the list.

Revision history for this message
Franz Seidl (franz-s) wrote :

Then all works correct. The "prefered language" which you chose in Firefox is for the websites, not for Firefox directly (menu, buttons, and so on). Firefox (and Ubuntu) should be in Italien, when you install the package "language-pack-it".

The website "beppegrillo.it" don't check your preferred language. Instead they check in which language your browser is. And that's in your case English.

Revision history for this message
Franz Seidl (franz-s) wrote :

Hello manolo,

Thank you for taking the time to report this bug and helping to make Ubuntu better. However as Firefox acts like it should in this case I set this bug report to "Invalid".

The fault is on www.beppegrillo.it. The preferred language is not accessible via JavaScript. They have to use a server side script language like PHP (-> $_SERVER['HTTP_ACCEPT_LANGUAGE'])

Greets

Franz

Changed in firefox-3.0:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.