summaryrefslogtreecommitdiff
path: root/firefox.sh.in
diff options
context:
space:
mode:
authorChristopher Aillon <caillon@fedoraproject.org>2007-02-09 19:19:52 +0000
committerChristopher Aillon <caillon@fedoraproject.org>2007-02-09 19:19:52 +0000
commit6afc94d1e333023c869050041312357e6e7f5bb2 (patch)
treea9d7f5f8296e1f9535d2a501ef55afa65ed4c148 /firefox.sh.in
parent- Start using the specified locale (diff)
downloadlibrewolf-fedora-ff-6afc94d1e333023c869050041312357e6e7f5bb2.tar.gz
librewolf-fedora-ff-6afc94d1e333023c869050041312357e6e7f5bb2.tar.bz2
librewolf-fedora-ff-6afc94d1e333023c869050041312357e6e7f5bb2.zip
- Start using the specified locale
Diffstat (limited to 'firefox.sh.in')
-rw-r--r--firefox.sh.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/firefox.sh.in b/firefox.sh.in
index aaef7aa..1af0b7e 100644
--- a/firefox.sh.in
+++ b/firefox.sh.in
@@ -128,8 +128,13 @@ fi
# check system locale
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"`
-[ -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
bgstack15