]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - check-translations.sh
fix the template pic
[xonotic/xonotic-data.pk3dir.git] / check-translations.sh
index 3dc3222838a62f969b6ff0b218439b15bb6eb3e9..99882291aff6a2894c1e0cd8ff44c0531d840df7 100755 (executable)
@@ -3,7 +3,7 @@
 case "$1" in
        pot)
                mode=pot
-               mail=true
+               mail=false
                ;;
        po)
                mode=po
@@ -38,7 +38,12 @@ for VM in menu csprogs; do
                {
                        find qcsrc/"$VMD" -type f -not -name \*.po -not -name \*.txt
                        find qcsrc/common -type f -not -name \*.po -not -name \*.txt
-                       find qcsrc/server -type f -name w_\*.qc
+                       if [ x"$VM" = x"csprogs" ]; then
+                               find qcsrc/server -type f -name w_\*.qc
+                       elif [ x"$VM" = x"menu" ]; then
+                               find qcsrc/server -type f -name w_\*.qc | xargs grep ^REGISTER_WEAPON > weapons.qc.tmp
+                               echo "weapons.qc.tmp"
+                       fi
                } | xgettext -LC -k_ -f- --from-code utf-8 -o "$VM".dat.pot >&2
        fi