]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - check-translations.sh
Merge branch 'samual/water_and_damage_blur' into samual/hud_contents
[xonotic/xonotic-data.pk3dir.git] / check-translations.sh
index 2c6313c884ffcde15b489eaea111366cc18e3b79..36d66bf2784d435c2bd10f086cf29d26c2df665d 100755 (executable)
@@ -1,8 +1,18 @@
-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
+#!/bin/sh
+
+for VM in menu csprogs; do
+       case "$VM" in
+               csprogs)
+                       VMD=client
+                       ;;
+               *)
+                       VMD=$VM
+                       ;;
+       esac
+       find qcsrc/"$VMD" -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
+               msgmerge -F -U "$X" "$VM".dat.pot >&2
                todo=$(
                        msgattrib --untranslated "$X" | grep -A 2147483647 "^#:"
                        msgattrib --fuzzy "$X"        | grep -A 2147483647 "^#:"