← Back to team overview

desktop-packages team mailing list archive

[Bug 249989] Re: $LC_*, $LANG and $LANGUAGE env vars misinterpreted

 

** Changed in: firefox
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to firefox in Ubuntu.
https://bugs.launchpad.net/bugs/249989

Title:
  $LC_*, $LANG and $LANGUAGE env vars misinterpreted

Status in The Mozilla Firefox Browser:
  Invalid
Status in firefox package in Ubuntu:
  Invalid
Status in firefox-3.0 package in Ubuntu:
  Triaged

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://bugzilla.mozilla.org/show_bug.cgi?id=419176

  1) Ubuntu release:
    Ubuntu 8.04 Hardy Heron x86_64

  2) Package version:
    3.0+nobinonly-0ubuntu0.8.04.1
    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/localization for the system's default locale, it defaults to English, no matter what locales are listed in $LANGUAGE.

  
  Steps to reproduce the bug:
  1) Run this bash command:
  LANG="gl_ES.UTF-8"  LANGUAGE="gl_ES:gl_GL:gl:es_ES:es:en_US:en"  firefox
  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.

To manage notifications about this bug go to:
https://bugs.launchpad.net/firefox/+bug/249989/+subscriptions