X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=check-translations.sh;h=fb1f68f32a64fecb6dd70b1334372defff54510c;hb=1de3b82da199fe76d62d72b481e2fbc547c89e23;hp=297e16ef02e1672df8392a7a2c8d0931aeff99e1;hpb=75e5c4bff60424203dd141483fc6706c0552c92d;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/check-translations.sh b/check-translations.sh index 297e16ef0..fb1f68f32 100755 --- a/check-translations.sh +++ b/check-translations.sh @@ -16,6 +16,11 @@ for VM in menu csprogs; do } | xgettext -LC -k_ -f- --from-code utf-8 -o "$VM".dat.pot >&2 for X in "$VM".dat.*.po; do [ -f "$X" ] || continue + for Y in ~/check-translations/"$X".*; do + [ -f "$Y" ] || continue + msgcat -F --use-first "$Y" "$X" > "$X".new + mv "$X".new "$X" + done msgmerge -F -U "$X" "$VM".dat.pot >&2 msgattrib --untranslated "$X" | grep . > "$X".untranslated || rm -f "$X".untranslated msgattrib --fuzzy "$X" | grep . > "$X".fuzzy || rm -f "$X".fuzzy