]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - check-translations.sh
fix file encoding of input files
[xonotic/xonotic-data.pk3dir.git] / 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