Bug 441973 - Firefox ignores $LC_MESSAGES
Summary: Firefox ignores $LC_MESSAGES
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: firefox
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jan Horak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-04-10 22:20 UTC by Lennart Poettering
Modified: 2018-04-11 18:45 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-29 11:06:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.