summaryrefslogtreecommitdiff
path: root/fetchtranslations.sh
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-10-10 10:12:49 +0200
committerArne Schwabe <arne@rfc2549.org>2012-10-10 10:12:49 +0200
commit5ea105c31f8a2916016a168263975ed261800e6d (patch)
tree768176d5e2955a23fef741a3d4d89c79aa4796cc /fetchtranslations.sh
parent25c2a630fc996145a277fab8fefd5ff5c8f6be10 (diff)
Have translationby string a useful default for translators
Grrrr at Chinese languages. Russian is complete enought to be usable
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