X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=check-translations.sh;h=99882291aff6a2894c1e0cd8ff44c0531d840df7;hb=a406e1b7e63e1ba26e8f59229f5410c4fa1d070d;hp=3dc3222838a62f969b6ff0b218439b15bb6eb3e9;hpb=b3a4b144384dbdd7f9ef01d98b7c3fcd83c5e547;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