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
commit2e0adab642eabfc976c57a43ad81ec0ffdd00027 (patch)
treee26eb133318d5baf45ddc86f3a52f6b244a1c56d /fetchtranslations.sh
parent396a278c3c1d7b5b24a49402d9f33f17a6ff1e70 (diff)
Have translationby string a useful default for translators
Grrrr at Chinese languages. Russian is complete enought to be usable --HG-- rename : res/values-zh-CN/arrays.xml => res/values-zh-rCN/arrays.xml rename : res/values-zh-CN/strings.xml => res/values-zh-rCN/strings.xml
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