X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=check-translations.sh;h=6cfd13dbbdaa120ae6ab63ab9793cad9491aedec;hb=1629a11f384760133c497a31b909248f36a5792a;hp=2c6313c884ffcde15b489eaea111366cc18e3b79;hpb=6928cee70fe3f2701e953e4fdd7fa556c97ed59e;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/check-translations.sh b/check-translations.sh index 2c6313c88..6cfd13dbb 100755 --- a/check-translations.sh +++ b/check-translations.sh @@ -1,8 +1,22 @@ -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 + find qcsrc/common -type f -not -name \*.po -not -name \*.txt + find qcsrc/server -type f -name w_\*.qc + } | 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 "^#:"