summaryrefslogtreecommitdiff
path: root/fetchtranslations.sh
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2013-05-29 22:05:39 +0200
committerArne Schwabe <arne@rfc2549.org>2013-05-29 22:05:39 +0200
commitf7bcff4ce6e3b74d2286501f946dc37dccdfa96b (patch)
tree99033c17bc10ae8013cf4e5fb1eec629b7e6f06b /fetchtranslations.sh
parent0ccf804fb65842f36078832ca0cff6dd2d7be9f7 (diff)
Move build files to misc directory
--HG-- rename : build-native.bat => misc/build-native.bat rename : build-native.sh => misc/build-native.sh rename : fetchtranslations.sh => misc/fetchtranslations.sh
Diffstat (limited to 'fetchtranslations.sh')
-rwxr-xr-xfetchtranslations.sh35
1 files changed, 0 insertions, 35 deletions
diff --git a/fetchtranslations.sh b/fetchtranslations.sh
deleted file mode 100755
index d0be16cf..00000000
--- a/fetchtranslations.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#! /bin/sh
-
-
-if [ "$ICSCROWDAPIKEY" != "" ]
-then
- echo "Generating new translation archives"
- fetch -q -1 -o - http://api.crowdin.net/api/project/ics-openvpn/export?key=$ICSCROWDAPIKEY
-fi
-
-echo "Fetch translation archive"
-fetch -q http://crowdin.net/download/project/ics-openvpn.zip
-
-langtoinclude="ca cs de es et fr id it ja ko no nl ro ru sv uk"
-
-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 zh-TW id
-do
- if [ $lang = "zh-CN" ] ; then
- rlang="zh-rCN"
- elif [ $lang = "zh-TW" ] ; then
- rlang="zh-rTW"
- elif [ $lang = "id" ] ; then
- rlang="id"
- fi
-
- echo "Fetch archive for $lang"
- fetch http://crowdin.net/download/project/ics-openvpn/$lang.zip
- tar -xv -C res/values-$rlang/ --strip-components 3 -f $lang.zip
-done \ No newline at end of file