From: Rudolf Polzer Date: Tue, 30 Dec 2014 11:54:59 +0000 (+0100) Subject: Improve transifex sync script a bit. X-Git-Tag: xonotic-v0.8.0~31 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=433c8f23b7a9e35e7910ed79da6f150565c70b7f;p=xonotic%2Fxonotic-data.pk3dir.git Improve transifex sync script a bit. --- diff --git a/tx.sh b/tx.sh index 992ed3f50..47c388f68 100644 --- a/tx.sh +++ b/tx.sh @@ -7,6 +7,9 @@ mergebase=`git log --pretty=oneline -1 .tx/merge-base | cut -d ' ' -f 1` set -e +# Update the .pot. +sh check-translations.sh pot + # First upload our current .pot. mkdir -p translations/xonotic.commonpot/ cp common.pot translations/xonotic.commonpot/en..po @@ -63,3 +66,11 @@ for f in translations/xonotic.commonpot/*..po; do done tx push -t --skip date > .tx/merge-base + +# Build new languages list. +sh check-translations.sh txt > languages.txt.new +mv languages.txt.new languages.txt + +# Report stats. +git diff --stat +git diff --color-words languages.txt