Firefox navigator.language always return en-US
Bug #117915 reported by
Paco Avila
This bug report is a duplicate of:
Bug #353924: Offline home page always English (browser language hard-coded to en-US).
Edit
Remove
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mozilla Firefox |
In Progress
|
Unknown
|
|||
firefox-3.0 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: firefox
My locale is es_ES.UTF-8, my list of preferred langs is es-es, es, en-us, en. But this Javascript code returns en-US:
alert(
Why? It should return es-ES (or es-es).
TESTCASE:
Steps to Reproduce:
1.Set your default language to something different than the locale
2a. access navigator.language javascript property
2b. or access http://
Actual Results:
you get your locale
Expected Results:
you should get the default language
Changed in firefox: | |
assignee: | nobody → mozilla-bugs |
Changed in firefox: | |
status: | Unknown → Rejected |
description: | updated |
Changed in firefox: | |
status: | Rejected → Confirmed |
Changed in firefox: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
This bug can be easily confirmed by using: gemal.dk/ browserspy/ language. html
http://
after changing firefox accepted languages to non en_US.
This bug has been reported before upstream but was also reported to be fixed. See: /bugzilla. mozilla. org/show_ bug.cgi? id=285267
https:/
Please check if a patch for this bug needs to be synched from upstream.