|
@@ -1,15 +1,8 @@
|
|
|
#!/bin/bash
|
|
|
|
|
|
+# This script pulls android translations from transifex and converts them to apple strings files.
|
|
|
+# Credits to Daniel Cohen Gindi.
|
|
|
|
|
|
-function quit {
|
|
|
- echo "Task failed. Exit value: $?."
|
|
|
- cleanUp
|
|
|
- exit 1
|
|
|
-}
|
|
|
-
|
|
|
-function cleanUp {
|
|
|
- echo ""
|
|
|
-}
|
|
|
|
|
|
# ----Main-----
|
|
|
|
|
@@ -28,25 +21,6 @@ then
|
|
|
exit
|
|
|
fi
|
|
|
|
|
|
-# init parameters
|
|
|
-for ((i=1;i<=$#;i++));
|
|
|
-do
|
|
|
- if [[ ${!i} = "-h" || ${!i} = "-help" ]];
|
|
|
- then
|
|
|
- echo -e "
|
|
|
- This script pulls android translations from transifex and converts them to apple strings files.
|
|
|
- Credits to Daniel Cohen Gindi."
|
|
|
-
|
|
|
- exit
|
|
|
-
|
|
|
- else
|
|
|
- echo "Invalid argument: ${!i}"
|
|
|
- exit
|
|
|
- fi
|
|
|
-
|
|
|
-done;
|
|
|
-
|
|
|
-
|
|
|
if [[ -d $TMP_ANDROID_TRANSLATIONS ]]
|
|
|
then
|
|
|
rm -rf $TMP_ANDROID_TRANSLATIONS
|