From d1d561ddb778d5147c38d8fda88291e9560343be Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Wed, 2 Oct 2013 18:17:11 +0200 Subject: [PATCH] Update localization pull script to handle java Locale class exceptions --- app/src/processing/app/i18n/pull.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/app/src/processing/app/i18n/pull.sh b/app/src/processing/app/i18n/pull.sh index d970419be..3c3469d66 100755 --- a/app/src/processing/app/i18n/pull.sh +++ b/app/src/processing/app/i18n/pull.sh @@ -5,8 +5,16 @@ if [ $0 != "./pull.sh" ]; then exit 1 fi +ALL='n' while [ $# -gt 0 ]; do if [ $1 = '-a' ]; then + ALL='y' + # We must do this until java Locale class is updated... + mv Resources_iw.po Resources_he.po + mv Resources_iw.properties Resources_he.properties + mv Resources_in.po Resources_id.po + mv Resources_in.properties Resources_id.properties + for f in Resources_*.po; do f=$(expr "$f" : "Resources_\(.*\).po") langs="$langs $f" @@ -22,10 +30,21 @@ if [ "$langs" = "" ]; then exit 1 fi + python python/pull.py $langs +if [ "$ALL" = "y" ]; then + # We must do this until java Locale class is updated... + mv Resources_he.po Resources_iw.po + mv Resources_he.properties Resources_iw.properties + mv Resources_id.po Resources_in.po + mv Resources_id.properties Resources_in.properties +fi + for lang in $langs; do if [ -f "Resources_$lang.po" ]; then msgcat -p Resources_$lang.po > Resources_$lang.properties fi done + +