Fixed wrong LANG and LC_MESSAGES variables interpretation (#441973)\nin

startup script.
This commit is contained in:
Jan Horak 2009-01-07 15:49:05 +00:00
parent 8932b3cc85
commit a31088e9f3
2 changed files with 7 additions and 3 deletions

View File

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

View File

@ -19,7 +19,7 @@
Summary: Mozilla Firefox Web browser Summary: Mozilla Firefox Web browser
Name: firefox Name: firefox
Version: 3.1 Version: 3.1
Release: 0.4.beta2%{?dist} Release: 0.5.beta2%{?dist}
URL: http://www.mozilla.org/projects/firefox/ URL: http://www.mozilla.org/projects/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+ License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet Group: Applications/Internet
@ -326,6 +326,10 @@ fi
#--------------------------------------------------------------------- #---------------------------------------------------------------------
%changelog %changelog
* Wed Jan 7 2009 Jan Horak <jhorak@redhat.com> - 3.1-0.5
- Fixed wrong LANG and LC_MESSAGES variables interpretation (#441973)
in startup script.
* Sat Dec 20 2008 Christopher Aillon <caillon@redhat.com> 3.1-0.4 * Sat Dec 20 2008 Christopher Aillon <caillon@redhat.com> 3.1-0.4
- 3.1 beta 2 - 3.1 beta 2