From aa7284898905068ee6e7688e1d6a292d112bacf0 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Tue, 27 Nov 2012 13:31:04 -0800 Subject: [PATCH] Fixed some bugs with the getloc-import script --- bin/getloc-import | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) mode change 100644 => 100755 bin/getloc-import diff --git a/bin/getloc-import b/bin/getloc-import old mode 100644 new mode 100755 index a6c7a03fd..750c0397c --- a/bin/getloc-import +++ b/bin/getloc-import @@ -18,7 +18,8 @@ read -s -p "Enter GetLocalization password: " pw LANG=$1 if [ "$LANG" == "all" ] - curl --user $user:$pw https://api.getlocalization.com/astrid/api/translations/zip/ -o translations/all.zip +then + curl --user $user:$pw https://api.getlocalization.com/astrid/api/translations/zip/ -o translations/all.zip ; echo mkdir translations/all tar xzf translations/all.zip -C translations/all @@ -31,16 +32,16 @@ if [ "$LANG" == "all" ] sed -i '' "s/'/\\\\'/g" $STRS sed -i '' "s/'/\\\\'/g" $STRS_API - mv $STRS astrid/values-$LANG/strings.xml - mv $STRS_API api/values-$LANG/strings.xml + mv $STRS astrid/res/values-$LANG/strings.xml + mv $STRS_API api/res/values-$LANG/strings.xml done rm -rf translations/all rm translations/all.zip else - curl --user $user:$pw https://api.getlocalization.com/astrid/api/translations/file/strings.xml/$LANG/ -o $STRS - curl --user $user:$pw https://api.getlocalization.com/astrid/api/translations.file/strings-api.xml/$LANG/ -o $STRS_API + curl --user $user:$pw https://api.getlocalization.com/astrid/api/translations/file/strings.xml/$LANG/ -o $STRS ; echo + curl --user $user:$pw https://api.getlocalization.com/astrid/api/translations/file/strings-api.xml/$LANG/ -o $STRS_API ; echo - mv $STRS astrid/values-$LANG/strings.xml - mv $STRS_API api/values-$LANG/strings.xml + mv $STRS astrid/res/values-$LANG/strings.xml + mv $STRS_API api/res/values-$LANG/strings.xml fi