]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - check-translations.sh
Update some cvars and comments
[xonotic/xonotic-data.pk3dir.git] / check-translations.sh
1 #!/bin/sh
2
3 for VM in menu csprogs; do
4         case "$VM" in
5                 csprogs)
6                         VMD=client
7                         ;;
8                 *)
9                         VMD=$VM
10                         ;;
11         esac
12         find qcsrc/"$VMD" -type f -not -name \*.po -not -name \*.txt | xgettext -LC -k_ -f- --from-code utf-8 -o "$VM".dat.pot >&2
13         for X in "$VM".dat.*.po; do
14                 [ -f "$X" ] || continue
15                 msgmerge -F -U "$X" "$VM".dat.pot >&2
16                 todo=$(
17                         msgattrib --untranslated "$X" | grep -A 2147483647 "^#:"
18                         msgattrib --fuzzy "$X"        | grep -A 2147483647 "^#:"
19                 )
20                 if [ -n "$todo" ]; then
21                         echo "TODO for translation $X:"
22                         echo "$todo"
23                         echo
24                 fi
25         done
26 done