Red Hat Bugzilla – Bug 112254
LANG=de_AT.UTF-8 doesn't cause Mozilla to use the German translation
Last modified: 2007-11-30 17:10:34 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.4.1)
Description of problem:
If I start mozilla with LANG=de_AT.UTF-8 set, it won't use the German
translation, but rather does use the hard-coded strings, just like if
started with LANG=C set.
The problem originates in /usr/bin/mozilla (line 184, 185), where the
script does only check wheter there's an exact match in
/usr/lib/mozilla-1.4.1/chrome/*.jar for the current locale.
This does not play nice with different country codes. I.e. it does
only work with de-DE, not with de-AT, because
/usr/lib/mozilla-1.4.1/chrome/de-AT.jar doesn't exist, while
A working solution would be to always pass the -UILocale argument, not
only if /usr/lib/mozilla-1.4.1/chrome/$MOZLOCALE.jar exists, since
mozilla does the checking on its own and would even fallback to a
genericc German translation.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Make sure not to have any mozilla started (/usr/bin/mozilla will
then only pass a command to the running instance)
2. LANG=de_DE.UTF-8 /usr/bin/mozilla
Watch it being German.
3. Kill it. Redo step 1.
4. LANG=de_AT.UTF-8 /usr/bin/mozilla
Watch it being English.
Actual Results: Step 4) started mozilla using English translation
because /usr/bin/mozilla had executed
/usr/lib/mozilla-1.4.1/mozilla.bin without any -UILocale argument.
Expected Results: It should have rather been an Austrian German
translation or a German translation as a fallback.
Step 2) exec's /usr/lib/mozilla-1.4.1/mozilla.bin -UILocale de-DE
Step 4) exec's /usr/lib/mozilla-1.4.1/mozilla.bin
The German Mozilla translation is actually for the locale de_AT
(please refer to the Mozilla l10n project), which makes this problem
even more weird.
In what way does it being de-AT make the problem any more weird?
It works just fine with either -UILocale de-AT or -UILocale de-DE
The translation was originally de_AT and I changed to to be de_DE
since that was our target. We don't ship a specific de_AT pack.
> We don't ship a specific de_AT pack.
My point was that /usr/bin/mozilla shouldn't check whether the given
locale exists or not as mozilla does this on its own because I get an
English mozilla under my de_AT.UTF-8 install.
It works just fine (i.e. German) with LANG=de_DE.UTF-8 set, as I
mentioned in the bug report.