]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blob - check-translations.sh
Fix effects not coming back on if toggling them off and back on while they should...
[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         {
13                 find qcsrc/"$VMD" -type f -not -name \*.po -not -name \*.txt
14                 find qcsrc/common -type f -not -name \*.po -not -name \*.txt
15                 find qcsrc/server -type f -name w_\*.qc
16         } | xgettext -LC -k_ -f- --from-code utf-8 -o "$VM".dat.pot >&2
17         for X in "$VM".dat.*.po; do
18                 [ -f "$X" ] || continue
19                 msgmerge -F -U "$X" "$VM".dat.pot >&2
20                 todo=$(
21                         msgattrib --untranslated "$X" | grep -A 2147483647 "^#:"
22                         msgattrib --fuzzy "$X"        | grep -A 2147483647 "^#:"
23                 )
24                 if [ -n "$todo" ]; then
25                         echo "TODO for translation $X:"
26                         echo "$todo"
27                         echo
28                 fi
29         done
30 done