]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
detect syntax erorrs
authorRudolf Polzer <divverent@xonotic.org>
Wed, 22 Feb 2012 13:17:09 +0000 (14:17 +0100)
committerRudolf Polzer <divverent@xonotic.org>
Wed, 22 Feb 2012 13:17:30 +0000 (14:17 +0100)
check-translations.sh

index dccc1e8553845c67e4cd05b215e59ba6e4273db0..155029cbd4bbc573b0ba7133acfaff1286787687 100755 (executable)
@@ -64,6 +64,10 @@ 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
                                vim -E "$Y" <<EOF
 set fileencoding=utf-8
 set nobomb