summaryrefslogtreecommitdiff
path: root/firefox.sh.in
diff options
context:
space:
mode:
authorMartin Stransky <stransky@redhat.com>2019-01-04 13:49:06 +0100
committerMartin Stransky <stransky@redhat.com>2019-01-04 13:49:06 +0100
commitea5307de1a0f2fdea3ea7d793559408f665a2bfe (patch)
tree3f3794fe667a9a1d08de9964f99fc28990272929 /firefox.sh.in
parentEnabled LTO+PGO (diff)
downloadlibrewolf-fedora-ff-ea5307de1a0f2fdea3ea7d793559408f665a2bfe.tar.gz
librewolf-fedora-ff-ea5307de1a0f2fdea3ea7d793559408f665a2bfe.tar.bz2
librewolf-fedora-ff-ea5307de1a0f2fdea3ea7d793559408f665a2bfe.zip
Changed locale detector to handle Esperanto (rhbz#1656900)
Diffstat (limited to 'firefox.sh.in')
-rw-r--r--firefox.sh.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/firefox.sh.in b/firefox.sh.in
index adf98e9..4ad7237 100644
--- a/firefox.sh.in
+++ b/firefox.sh.in
@@ -191,8 +191,8 @@ if [ $MOZILLA_DOWN -ne 0 ]; then
CURRENT_LOCALE=${CURRENT_LOCALE:-$LANG}
# Try with a local variant first, then without a local variant
- SHORTMOZLOCALE=`echo $CURRENT_LOCALE | sed "s|_\([^.]*\).*||g"`
- MOZLOCALE=`echo $CURRENT_LOCALE | sed "s|_\([^.]*\).*|-\1|g"`
+ SHORTMOZLOCALE=`echo $CURRENT_LOCALE | sed "s|_\([^.]*\).*||g" | sed "s|\..*||g"`
+ MOZLOCALE=`echo $CURRENT_LOCALE | sed "s|_\([^.]*\).*|-\1|g" | sed "s|\..*||g"`
function create_langpack_link() {
local language=$*
bgstack15