summaryrefslogtreecommitdiff
path: root/fetchtranslations.sh
diff options
context:
space:
mode:
Diffstat (limited to 'fetchtranslations.sh')
-rwxr-xr-xfetchtranslations.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/fetchtranslations.sh b/fetchtranslations.sh
index 8a994d82..e9ab2f95 100755
--- a/fetchtranslations.sh
+++ b/fetchtranslations.sh
@@ -1,5 +1,11 @@
#! /bin/sh
+
+if [ "$ICSCROWDAPIKEY" != "" ]
+then
+ fetch -1 -o - http://api.crowdin.net/api/project/ics-openvpn/export?key=$ICSCROWDAPIKEY
+fi
+
fetch http://crowdin.net/download/project/ics-openvpn.zip
langtoinclude="de cs ko et fr he"
@@ -7,4 +13,12 @@ langtoinclude="de cs ko et fr he"
for lang in $langtoinclude
do
tar xfv ics-openvpn.zip /res/values-$lang/
+done
+
+# Chinese language require zh-CN and zh-TW
+
+for lang in zh-CN
+do
+ fetch http://crowdin.net/download/project/ics-openvpn/$lang.zip
+ tar -xv -C res/values-$lang/ --strip-components 3 -f $lang.zip
done \ No newline at end of file