- Start using the specified locale
This commit is contained in:
parent
74ab3a6f29
commit
6afc94d1e3
@ -128,8 +128,13 @@ fi
|
|||||||
|
|
||||||
# check system locale
|
# check system locale
|
||||||
MOZARGS=
|
MOZARGS=
|
||||||
|
# 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"`
|
MOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*|-\1|g"`
|
||||||
[ -f $MOZILLA_FIVE_HOME/chrome/$MOZLOCALE.jar ] && MOZARGS="-UILocale $MOZLOCALE"
|
[ -f $MOZ_EXTENSIONS_DIR/langpack-${MOZLOCALE}@firefox.mozilla.org/chrome/$MOZLOCALE.jar ] && MOZARGS="-UILocale $MOZLOCALE"
|
||||||
|
|
||||||
|
|
||||||
# if there's no command line argument and there's not a running
|
# if there's no command line argument and there's not a running
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
Summary: Mozilla Firefox Web browser.
|
Summary: Mozilla Firefox Web browser.
|
||||||
Name: firefox
|
Name: firefox
|
||||||
Version: 2.0.0.1
|
Version: 2.0.0.1
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
URL: http://www.mozilla.org/projects/firefox/
|
URL: http://www.mozilla.org/projects/firefox/
|
||||||
License: MPL/LGPL
|
License: MPL/LGPL
|
||||||
Group: Applications/Internet
|
Group: Applications/Internet
|
||||||
|
Loading…
Reference in New Issue
Block a user