From 433c8f23b7a9e35e7910ed79da6f150565c70b7f Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 30 Dec 2014 12:54:59 +0100 Subject: [PATCH] Improve transifex sync script a bit. --- tx.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.39.2