mirror of
https://github.com/etesync/android
synced 2024-11-23 00:18:19 +00:00
8449684dd2
* fetch translations from Transifex * minor changes (lint/strings)
12 lines
428 B
Bash
Executable File
12 lines
428 B
Bash
Executable File
#!/bin/bash
|
|
|
|
declare -A android
|
|
android=([ca]=ca [cs]=cs [da]=da [de]=de [es]=es [fr]=fr [hu]=hu [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)
|
|
|
|
for lang in ${!android[@]}
|
|
do
|
|
target=../app/src/main/res/values-${android[$lang]}
|
|
mkdir -p $target
|
|
curl -n "https://www.transifex.com/api/2/project/davdroid/resource/davdroid/translation/$lang?file" >$target/strings.xml
|
|
done
|