From 5d005a97d8aff39b5b24cf0fe9386a480ae81ffa Mon Sep 17 00:00:00 2001 From: filip Date: Wed, 6 Jan 2016 01:59:46 +0100 Subject: script used for pt to sync pt_PT non web gettext translations from TX if fuzzy or untranslated --- tx_tools/language_merge.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tx_tools/language_merge.sh diff --git a/tx_tools/language_merge.sh b/tx_tools/language_merge.sh new file mode 100644 index 00000000..5235d4b3 --- /dev/null +++ b/tx_tools/language_merge.sh @@ -0,0 +1,13 @@ +#!/bin/bash +# used for pt to sync pt_PT non web gettext translations from TX if fuzzy or untranslated +# manually cd to gettext subdir and then do: +git pull -v # git sync +rm --interactive pt_PT.po # did translation existed before? +tx pull --language=pt_PT # TX sync +msgcat --use-first --output-file=pt.po pt.po pt_PT.po # use pt_PT only if pt is not there +rm --interactive pt_PT.po # remove duplicate from git +git status # check if pt.po has changed + +# do those manually afterward if needed: +# tx push --translations --language=pt +# git commit -m "use pt_PT translation from TX if fuzzy or untranslated" \ No newline at end of file -- cgit v1.2.1