#!/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"