diff options
author | Arne Schwabe <arne@rfc2549.org> | 2012-10-08 19:27:03 +0200 |
---|---|---|
committer | Arne Schwabe <arne@rfc2549.org> | 2012-10-08 19:27:03 +0200 |
commit | 396a278c3c1d7b5b24a49402d9f33f17a6ff1e70 (patch) | |
tree | 7908c54fbed3ea6e2231e46bcfd941406f164633 /fetchtranslations.sh | |
parent | 9634fb1ab9b6ac504158ac732e0d717742370fc7 (diff) |
Add generating to script.
Difference between zh-CN and zh-TW
--HG--
rename : res/values-zh/arrays.xml => res/values-zh-CN/arrays.xml
rename : res/values-zh/strings.xml => res/values-zh-CN/strings.xml
Diffstat (limited to 'fetchtranslations.sh')
-rwxr-xr-x | fetchtranslations.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/fetchtranslations.sh b/fetchtranslations.sh index 8a994d82..e9ab2f95 100755 --- a/fetchtranslations.sh +++ b/fetchtranslations.sh @@ -1,5 +1,11 @@ #! /bin/sh + +if [ "$ICSCROWDAPIKEY" != "" ] +then + fetch -1 -o - http://api.crowdin.net/api/project/ics-openvpn/export?key=$ICSCROWDAPIKEY +fi + fetch http://crowdin.net/download/project/ics-openvpn.zip langtoinclude="de cs ko et fr he" @@ -7,4 +13,12 @@ langtoinclude="de cs ko et fr he" 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 +do + fetch http://crowdin.net/download/project/ics-openvpn/$lang.zip + tar -xv -C res/values-$lang/ --strip-components 3 -f $lang.zip done
\ No newline at end of file |