aboutsummaryrefslogtreecommitdiffstats
path: root/tx_tools/language_merge.sh
blob: 5235d4b3066d14d59f3a4905f2f54dbd621c082d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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"