aboutsummaryrefslogtreecommitdiffstats
path: root/tx_tools
diff options
context:
space:
mode:
Diffstat (limited to 'tx_tools')
-rw-r--r--tx_tools/language_merge.sh13
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