summaryrefslogtreecommitdiff
path: root/fetchtranslations.sh
blob: e9ab2f955fb16846efe65e5b5858b8f97ece6c19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#! /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"

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