]> 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 99882291aff6a2894c1e0cd8ff44c0531d840df7..ea747baad652ad6211740da1c52c61e35d4a00a0 100755 (executable)
@@ -8,7 +8,7 @@ case "$1" in
        po)
                mode=po
                mail=true
-               language=
+               language=$2
                ;;
        '')
                echo "Sorry, you are not supposed to use this script."
@@ -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
@@ -147,7 +153,7 @@ EOF
                                                                        -e "set use_envelope_from=yes" \
                                                                        -s "Need update for translations: $X" \
                                                                        -c "$cc" \
-                                                                       -b "divVerent@xonotic.org" \
+                                                                       -b "admin@xonotic.org" \
                                                                        -a $attach -- \
                                                                        "$to"
                                                                break