]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix file encoding of input files
authorRudolf Polzer <divverent@xonotic.org>
Wed, 22 Feb 2012 13:10:35 +0000 (14:10 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 22 Feb 2012 13:10:35 +0000 (14:10 +0100)
check-translations.sh

index db8f3114c210909e1a475f51b3f645f4def92a18..ea747baad652ad6211740da1c52c61e35d4a00a0 100755 (executable)
@@ -57,6 +57,12 @@ for VM in menu csprogs; do
                        fi
                        for Y in ~/check-translations/"$X".*; do
                                [ -f "$Y" ] || continue
+                               vim -E "$Y" <<EOF
+set fileencoding=utf-8
+set nobomb
+w
+q
+EOF
                                msgcat -F --use-first "$Y" "$X" > "$X".new
                                mv "$X".new "$X"
                        done