diff options
author | filip <filip.komar@gmail.com> | 2016-01-06 01:59:46 +0100 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2016-01-06 01:59:46 +0100 |
commit | 5d005a97d8aff39b5b24cf0fe9386a480ae81ffa (patch) | |
tree | 84c51b37bd5dcd7b0ec4b2d3f79be20e049f44d4 /tx_tools | |
parent | e5e070366dc7ea572c26b65011de22b6f7925a6d (diff) | |
download | tools-5d005a97d8aff39b5b24cf0fe9386a480ae81ffa.tar tools-5d005a97d8aff39b5b24cf0fe9386a480ae81ffa.tar.gz tools-5d005a97d8aff39b5b24cf0fe9386a480ae81ffa.tar.bz2 tools-5d005a97d8aff39b5b24cf0fe9386a480ae81ffa.tar.xz tools-5d005a97d8aff39b5b24cf0fe9386a480ae81ffa.zip |
script used for pt to sync pt_PT non web gettext translations from TX if fuzzy or untranslated
Diffstat (limited to 'tx_tools')
-rw-r--r-- | tx_tools/language_merge.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 |