summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre.ledru@scilab.org>2011-05-06 10:29:05 +0200
committerVincent COUVERT <vincent.couvert@scilab.org>2011-05-06 10:54:58 +0200
commitec58e551fc04036f08e8200f5a0837b7b197beda (patch)
treed3b7197c00e88b2a098d8de61350e6e588f3ce8b
parent1287e683466d4e187be3240860829b9566e3e36c (diff)
downloadscilab-ec58e551fc04036f08e8200f5a0837b7b197beda.zip
scilab-ec58e551fc04036f08e8200f5a0837b7b197beda.tar.gz
Bashim removed
Change-Id: Ibe58eacddcef8dd7e3251d4d2fecfe192fc60ef5
-rwxr-xr-xscilab/tools/localization/dispatchLocalizationFile.sh18
1 files changed, 9 insertions, 9 deletions
diff --git a/scilab/tools/localization/dispatchLocalizationFile.sh b/scilab/tools/localization/dispatchLocalizationFile.sh
index 7fd1cc4..d9ffe37 100755
--- a/scilab/tools/localization/dispatchLocalizationFile.sh
+++ b/scilab/tools/localization/dispatchLocalizationFile.sh
@@ -42,15 +42,15 @@ for file in $LAUNCHPAD_DIRECTORY/*.po; do
42 file=`echo $file|awk -F / '{print $NF}'` # get only the filename 42 file=`echo $file|awk -F / '{print $NF}'` # get only the filename
43 LOC=`echo $file|cut -d. -f1|awk -F - '{print $NF}'` # Get the locale (fr_FR, en_US ...) 43 LOC=`echo $file|cut -d. -f1|awk -F - '{print $NF}'` # Get the locale (fr_FR, en_US ...)
44 44
45 if test "$LOC" == "fr"; then LOC="fr_FR"; fi # Retrieve real format 45 if test "$LOC" = "fr"; then LOC="fr_FR"; fi # Retrieve real format
46 if test "$LOC" == "ru"; then LOC="ru_RU"; fi 46 if test "$LOC" = "ru"; then LOC="ru_RU"; fi
47 if test "$LOC" == "de"; then LOC="de_DE"; fi 47 if test "$LOC" = "de"; then LOC="de_DE"; fi
48 if test "$LOC" == "ca"; then LOC="ca_ES"; fi 48 if test "$LOC" = "ca"; then LOC="ca_ES"; fi
49 if test "$LOC" == "es"; then LOC="es_ES"; fi 49 if test "$LOC" = "es"; then LOC="es_ES"; fi
50 if test "$LOC" == "ja"; then LOC="ja_JP"; fi 50 if test "$LOC" = "ja"; then LOC="ja_JP"; fi
51 if test "$LOC" == "it"; then LOC="it_IT"; fi 51 if test "$LOC" = "it"; then LOC="it_IT"; fi
52 if test "$LOC" == "uk"; then LOC="uk_UA"; fi 52 if test "$LOC" = "uk"; then LOC="uk_UA"; fi
53 if test "$LOC" == "pl"; then LOC="pl_PL"; fi 53 if test "$LOC" = "pl"; then LOC="pl_PL"; fi
54 54
55 # check that it is the right format 55 # check that it is the right format
56 echo "$LOC"|grep -E "(.*_.*)" > /dev/null # it is a real localization name xx_YY 56 echo "$LOC"|grep -E "(.*_.*)" > /dev/null # it is a real localization name xx_YY