From d517785bc54f6c2d9e12ea6f3f0fb8c148c500fc Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 22 Feb 2012 14:17:09 +0100 Subject: [PATCH] detect syntax erorrs --- check-translations.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/check-translations.sh b/check-translations.sh index dccc1e855..155029cbd 100755 --- a/check-translations.sh +++ b/check-translations.sh @@ -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" <