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