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