]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
update the translation fixing script to take input
authorRudolf Polzer <divVerent@xonotic.org>
Sat, 30 Apr 2011 08:03:47 +0000 (10:03 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Sat, 30 Apr 2011 08:03:47 +0000 (10:03 +0200)
check-translations.sh

index 297e16ef02e1672df8392a7a2c8d0931aeff99e1..2a44b603466fd7fd083f8103a4ba8b0bbc2a43fc 100755 (executable)
@@ -16,6 +16,10 @@ 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 "$X".*.new; do
+                       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