From cfe6a40c84f7d718f64c26dd3b856a220e9e5892 Mon Sep 17 00:00:00 2001 From: Arne Schwabe Date: Mon, 3 Mar 2014 11:30:21 +0100 Subject: Fix fetch translation script --HG-- rename : misc/fetchtranslations.sh => main/misc/fetchtranslations.sh extra : rebase_source : df6d71479fe6541654d06fcff14fe63a09670352 --- misc/fetchtranslations.sh | 38 -------------------------------------- 1 file changed, 38 deletions(-) delete mode 100755 misc/fetchtranslations.sh (limited to 'misc') diff --git a/misc/fetchtranslations.sh b/misc/fetchtranslations.sh deleted file mode 100755 index 2889a9c4..00000000 --- a/misc/fetchtranslations.sh +++ /dev/null @@ -1,38 +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 pl ro ru sv tr 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 - rm $lang.zip -done - -rm -v ics-openvpn.zip -- cgit v1.2.3