summaryrefslogtreecommitdiff
path: root/fetchtranslations.sh
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-10-08 19:27:03 +0200
committerArne Schwabe <arne@rfc2549.org>2012-10-08 19:27:03 +0200
commit25c2a630fc996145a277fab8fefd5ff5c8f6be10 (patch)
tree2d36bcde81f81b5e38bcb9710aa7969291286256 /fetchtranslations.sh
parenteab710e87e3f4d6d247ec705755e8d3f52fcfa4e (diff)
Add generating to script.
Difference between zh-CN and zh-TW
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 8a994d8..e9ab2f9 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