1
0
mirror of https://github.com/etesync/android synced 2024-12-24 23:48:35 +00:00
etesync-android/scripts/fetch-translations.sh
Ricki Hirner 4b5cb30762
Log resource detection results to viewable string
* new StringLogger
* DavResourceFinder: log to StringLogger; if no collections are found, logs can be views
* DebugInfoActivity: show passed logs
* script to fetch translations from Transifex
* increase version to 0.9-beta2
2015-10-18 17:30:26 +02:00

12 lines
382 B
Bash
Executable File

#!/bin/bash
declare -A android
android=([ca]=ca [cs]=cs [de]=de [es]=es [fr]=fr [hu]=hu [nl]=nl [pl]=pl [pt]=pt [ru]=ru [sr]=sr [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