From 34ecd92ff5f22b63c084cefb1e33537492e43fce Mon Sep 17 00:00:00 2001 From: Eric House Date: Wed, 16 Sep 2015 07:01:09 -0700 Subject: [PATCH] script to copy translation data from android_translate branch --- xwords4/android/scripts/copy-xlations.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 xwords4/android/scripts/copy-xlations.sh diff --git a/xwords4/android/scripts/copy-xlations.sh b/xwords4/android/scripts/copy-xlations.sh new file mode 100755 index 000000000..847db8970 --- /dev/null +++ b/xwords4/android/scripts/copy-xlations.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +usage() { + [ $# -eq 0 ] || echo "ERROR: $1" + echo "usage: $0" + echo " git-copies all strings.xml translations from android_translate" + echo " branch to the current one. DOES NOT COMMIT nor consider history etc." + exit 1 +} + +[ $# -eq 0 ] || usage "unexpected paramater $1" + +for LANGDIR in res_src/values-??; do + echo "copying from $LANGDIR" + git show android_translate:xwords4/android/XWords4/${LANGDIR}/strings.xml > ${LANGDIR}/strings.xml +done