X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=check-translations.sh;h=99882291aff6a2894c1e0cd8ff44c0531d840df7;hb=f893aae88e2e970193d2d5d25b25f427bc9a5aff;hp=3dc3222838a62f969b6ff0b218439b15bb6eb3e9;hpb=aff05541b49fe416a41cca8137f05f5f1ef3e859;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/check-translations.sh b/check-translations.sh index 3dc322283..99882291a 100755 --- a/check-translations.sh +++ b/check-translations.sh @@ -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