Bug 441973

Summary: Firefox ignores $LC_MESSAGES
Product: [Fedora] Fedora Reporter: Lennart Poettering <lpoetter>
Component: firefoxAssignee: Jan Horak <jhorak>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 9CC: mcepl, pachoramos1, robert, stransky
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-01-29 11:06:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Lennart Poettering 2008-04-10 22:20:57 UTC
Firefox ignores the setting of $LC_MESSAGES=C and shows the UI in german, just
because I set $LANG to german.

Firefox should honour $LC_MESSAGES properly, just like any other good program.

Comment 1 Robert Marcano 2008-04-10 23:24:47 UTC
looks like the problem is the Fedora script used to launch firefox, it does
check that the language extension is installed using the LANG. That script is RH
specific, I removed the offending line and let firefox select the language by
itself,

With LANG=ja_JP I saw the UI in Japanese., with both LC_MESSAGES=en_US
LANG=ja_JP everything was shown on English.

Related lines on /usr/bin/firefox:

# Try without a local variant first, then with a local variant
# So that pt-BR doesn't try to use pt for example
SHORTMOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*||g"`
[ -f
$MOZ_EXTENSIONS_DIR/langpack-${SHORTMOZLOCALE}@firefox.mozilla.org/chrome/$SHORTMOZLOCALE.jar
] && MOZARGS="-UILocale $SHORTMOZLOCALE"

MOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*|-\1|g"`
[ -f
$MOZ_EXTENSIONS_DIR/langpack-${MOZLOCALE}@firefox.mozilla.org/chrome/$MOZLOCALE.jar
] && MOZARGS="-UILocale $MOZLOCALE"


Comment 2 Matěj Cepl 2008-04-11 11:49:47 UTC
Perfectly reproducable.

Comment 3 Bug Zapper 2008-05-14 09:17:03 UTC
Changing version to '9' as part of upcoming Fedora 9 GA.
More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 4 Martin Stransky 2008-10-24 12:58:53 UTC
Taking this one...

Comment 5 Jan Horak 2009-01-29 11:06:40 UTC
Commit to CVS and fixed in next release.