]> git.pld-linux.org Git - packages/firefox.git/commitdiff
- use locale binary
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Fri, 25 Feb 2005 16:27:34 +0000 (16:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mozilla-firefox.sh -> 1.5

mozilla-firefox.sh

index 945ed75eba13d146d679dc9ab97c99e3bb2840a2..98133d6657ca8e10569863b80395aeb9d2fcc116 100644 (file)
@@ -9,19 +9,8 @@ fi
 
 MOZILLA_FIVE_HOME=$LIBDIR
 
-if [ -z "$LC_ALL" ]; then
-       if [ -z "$LC_MESSAGES" ]; then
-               if [ -z "$LANG" ]; then
-                       MOZLOCALE="en-US"
-               else
-                       MOZLOCALE=`echo $LANG | sed "s|_\([^.]*\).*|-\1|g"`
-               fi
-       else
-               MOZLOCALE=`echo $LC_MESSAGES | sed "s|_\([^.]*\).*|-\1|g"`
-       fi
-else
-        MOZLOCALE=`echo $LC_ALL | sed "s|_\([^.]*\).*|-\1|g"`
-fi
+MOZLOCALE="$(/usr/bin/locale | grep "^LC_MESSAGES=" | sed "s|LC_MESSAGES=||g")"
+eval MOZLOCALE="$(echo $MOZLOCALE | sed "s|_\([^.]*\).*|-\1|g")"
 
 [ -f $MOZILLA_FIVE_HOME/chrome/$MOZLOCALE.jar ] && MOZARGS="-UILocale $MOZLOCALE"
 
This page took 0.028916 seconds and 4 git commands to generate.