2015-10-18 15:27:53 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
declare -A android
|
2016-04-10 16:44:51 +00:00
|
|
|
android=([ca]=ca [cs]=cs [da]=da [de]=de [es]=es [fr]=fr [hu]=hu [it]=it [ja]=ja [nl]=nl [pl]=pl [pt]=pt [pt_BR]=pt-rBR [ru]=ru [sr]=sr [tr_TR]=tr-rTR [uk]=uk [zh_CN]=zh-rCN)
|
2015-10-18 15:27:53 +00:00
|
|
|
|
|
|
|
for lang in ${!android[@]}
|
|
|
|
do
|
2016-09-02 10:13:22 +00:00
|
|
|
target_app=../app/src/main/res/values-${android[$lang]}
|
|
|
|
target_cert4android=../cert4android/src/main/res/values-${android[$lang]}
|
|
|
|
|
|
|
|
mkdir -p $target_app
|
|
|
|
curl -n "https://www.transifex.com/api/2/project/davdroid/resource/app/translation/$lang?file" >$target_app/strings.xml
|
|
|
|
|
2016-11-13 19:34:11 +00:00
|
|
|
#mkdir -p $target_cert4android
|
|
|
|
#curl -n "https://www.transifex.com/api/2/project/davdroid/resource/cert4android/translation/$lang?file" >$target_cert4android/strings.xml
|
2015-10-18 15:27:53 +00:00
|
|
|
done
|