[DRE-commits] r4169 - trunk/redmine/debian
Jérémy Lal
kapouer-guest at alioth.debian.org
Sat Sep 19 14:17:32 UTC 2009
Author: kapouer-guest
Date: 2009-09-19 14:17:31 +0000 (Sat, 19 Sep 2009)
New Revision: 4169
Modified:
trunk/redmine/debian/config
Log:
Fix comparison when LANG is empty.
Modified: trunk/redmine/debian/config
===================================================================
--- trunk/redmine/debian/config 2009-09-19 09:38:28 UTC (rev 4168)
+++ trunk/redmine/debian/config 2009-09-19 14:17:31 UTC (rev 4169)
@@ -97,7 +97,7 @@
1)
# supported locales
- # now check if current LANG correspond to one of those locales
+ # now check if current LANG correspond to one of those locales, only if LANG is like aa_BB.YY
locstr=${LANG%.*}
locMin=${locstr%_*}
locMaj=$(echo ${locstr#*_} | tr "[:upper:]" "[:lower:]")
@@ -106,13 +106,13 @@
IFS=", "
locAv="en"
for i in $redLocales; do
- if [ $locTrans = $i ];then
+ if [ "$locTrans" = "$i" ];then
locAv=$i
break
- elif [ $locMin = $i ];then
+ elif [ "$locMin" = "$i" ];then
locAv=$i
break
- fi
+ fi
done
IFS=$OLD_IFS
questionLanguage="redmine/instances/${fInstance}/default-language"
More information about the Pkg-ruby-extras-commits
mailing list