]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - check-translations.sh
add a translation checker tool
[xonotic/xonotic-data.pk3dir.git] / check-translations.sh
1 find qcsrc/menu -type f -not -name \*.po -not -name \*.txt | xgettext -LC -k_ -f- --from-code utf-8 -o menu.dat.pot >&2
2
3 for X in menu.dat.*.po; do
4         msgmerge -U "$X" menu.dat.pot >&2
5         todo=$(
6                 msgattrib --untranslated "$X" | grep -A 2147483647 "^#:"
7                 msgattrib --fuzzy "$X"        | grep -A 2147483647 "^#:"
8         )
9         if [ -n "$todo" ]; then
10                 echo "TODO for translation $X:"
11                 echo "$todo"
12                 echo
13         fi
14 done