$LC_*, $LANG and $LANGUAGE env vars misinterpreted
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mozilla Firefox |
Invalid
|
Wishlist
|
|||
firefox (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
firefox-3.0 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Binary package hint: mozilla-firefox
Firefox doesn't interpret locale related environment variables ($LANG and $LANGUAGE) as it should.
I feeded an existing upstream bug report with the following information. You can find it at:
https:/
1) Ubuntu release:
Ubuntu 8.04 Hardy Heron x86_64
2) Package version:
3.0+nobinonly
But this had affected all versions of firefox I've ever used
3) What is expected:
Firefox should honour the locale hierarchy set in $LANGUAGE, so when the first locale isn't available, the second should be tried, and so on. Extensions should do the same, independently of the choice made by the core application (or not, but personally I'd prefer that way :-).
4) What happens instead:
Firefox reads $LANG instead of $LANGUAGE to determine the user interface language, among other things. When there isn't a translation/
Steps to reproduce the bug:
1) Run this bash command:
LANG="gl_ES.UTF-8" LANGUAGE=
Result: Firefox UI is in English. It should be in Galician, but as no localization exist in that language, it should be in Spanish.
2) Run this bash command:
LANG="es_ES.UTF-8" LANGUAGE="whoCares" firefox
(you could run "firefox -UILocale es-ES" as well)
Result: Firefox UI is in Spanish, as long as every extension.
Changed in firefox: | |
status: | Unknown → New |
Changed in firefox: | |
importance: | Unknown → Wishlist |
Changed in firefox: | |
status: | New → Invalid |
The user interface is determined by what you have downloaded (there isn't a single version where you select with an environment variable) and the content is determined by Tools-> Options- >Content- >Languages (where you can select multiple language and it depends on the website what it will show you).
This is not a bug in my opinion, unless you want Firefox to be delivered in a single version for all languages (in which case nobody should complain that it's much larger than what it is now).