Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bitfireAT/davx5-ose.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicki Hirner <hirner@bitfire.at>2015-10-18 18:27:53 +0300
committerRicki Hirner <hirner@bitfire.at>2015-10-18 18:30:26 +0300
commit2f704b11ea49d6879601c3d758758197bfe862fd (patch)
treeed990bb481bd0e80aa4edf4c5ed2ca6bcb1b6fc8 /scripts
parentc37c219afc8691c1a999ffd151cf395b4c113db4 (diff)
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
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/fetch-translations.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/fetch-translations.sh b/scripts/fetch-translations.sh
new file mode 100755
index 00000000..74d5a107
--- /dev/null
+++ b/scripts/fetch-translations.sh
@@ -0,0 +1,11 @@
+#!/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