tools/update-translations
raw| 1 | #!/bin/bash |
| 2 | set -e |
| 3 | cd "$(dirname "$0")/.." || exit 1 |
| 4 | tools/extract-translations |
| 5 | tx push -s |
| 6 | tx pull -af --minimum-perc=50 |
| 7 | emacs1 po/fi.po |
| 8 | tx push -tf -l fi |
| 9 | for PO in po/*.po; do |
| 10 | LANG=$(basename $PO .po) |
| 11 | tools/check-translations $LANG |
| 12 | read -p "Keep? [Y/n] " |
| 13 | [ "$REPLY" = "n" ] && rm -fv $PO |
| 14 | done |
| 15 | rm -f po/LINGUAS |
| 16 | ls po/*.po | cut -d/ -f2 | cut -d. -f1 > po/LINGUAS |
| 17 | git status |