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