]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
translation checker: make it run on CSQC too
authorRudolf Polzer <divverent@alientrap.org>
Tue, 18 Jan 2011 20:26:23 +0000 (21:26 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 18 Jan 2011 20:26:23 +0000 (21:26 +0100)
check-translations.sh

index c57b647625884d04cc443d8f17ea640b3c2f6456..2c6313c884ffcde15b489eaea111366cc18e3b79 100755 (executable)
@@ -1,14 +1,16 @@
-find qcsrc/menu -type f -not -name \*.po -not -name \*.txt | xgettext -LC -k_ -f- --from-code utf-8 -o menu.dat.pot >&2
-
-for X in menu.dat.*.po; do
-       msgmerge -U "$X" menu.dat.pot >&2
-       todo=$(
-               msgattrib --untranslated "$X" | grep -A 2147483647 "^#:"
-               msgattrib --fuzzy "$X"        | grep -A 2147483647 "^#:"
-       )
-       if [ -n "$todo" ]; then
-               echo "TODO for translation $X:"
-               echo "$todo"
-               echo
-       fi
+for VM in menu client; do
+       find qcsrc/"$VM" -type f -not -name \*.po -not -name \*.txt | xgettext -LC -k_ -f- --from-code utf-8 -o "$VM".dat.pot >&2
+       for X in "$VM".dat.*.po; do
+               [ -f "$X" ] || continue
+               msgmerge -U "$X" "$VM".dat.pot >&2
+               todo=$(
+                       msgattrib --untranslated "$X" | grep -A 2147483647 "^#:"
+                       msgattrib --fuzzy "$X"        | grep -A 2147483647 "^#:"
+               )
+               if [ -n "$todo" ]; then
+                       echo "TODO for translation $X:"
+                       echo "$todo"
+                       echo
+               fi
+       done
 done
 done