]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - check-translations.sh
ignore en.po by default
[xonotic/xonotic-data.pk3dir.git] / check-translations.sh
index dccc1e8553845c67e4cd05b215e59ba6e4273db0..4fa4e86b6ecd0d08d620207263658b5210d07661 100755 (executable)
@@ -54,6 +54,10 @@ for VM in menu csprogs; do
                                if [ x"${X#*.dat.}" != x"$language.po" ]; then
                                        continue
                                fi
+                       else
+                               if [ x"${X#*.dat.}" = x"en.po" ]; then
+                                       continue
+                               fi
                        fi
                        msgmerge -F -U "$X" "$VM".dat.pot >&2
                        msgattrib --untranslated "$X" | grep . > "$X".untranslated || rm -f "$X".untranslated
@@ -64,6 +68,11 @@ for VM in menu csprogs; do
                        changed=false
                        for Y in ~/check-translations/"$X".*; do
                                [ -f "$Y" ] || continue
+                               if ! msgcat "$Y" >/dev/null; then
+                                       echo "File $Y has syntax errors. Skipped."
+                                       continue
+                               fi
+                               echo "Merging $Y..."
                                vim -E "$Y" <<EOF
 set fileencoding=utf-8
 set nobomb