From 9654b1d8de0f97fafc8ceea5e76a96f6154fc6f2 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Tue, 18 Jan 2011 11:10:02 +0100 Subject: [PATCH] add a translation checker tool --- apply-eol-style.sh | 14 -------------- check-translations.sh | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) delete mode 100755 apply-eol-style.sh create mode 100755 check-translations.sh diff --git a/apply-eol-style.sh b/apply-eol-style.sh deleted file mode 100755 index 6c6c997ccd..0000000000 --- a/apply-eol-style.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh - -while read -r EXT EOLSTYLE; do - echo "Fixing $EXT..." - find . -name .svn -prune -o -type f \( -name "*.$EXT" -o -name "$EXT" \) -print0 | \ - case "$EOLSTYLE" in - 1) - xargs -0 svn propset svn:eol-style native - ;; - 0) - xargs -0 svn propdel svn:eol-style - ;; - esac -done &2 + +for X in menu.dat.*.po; do + msgmerge -U "$X" menu.dat.pot >&2 + todo=$( + msgattrib --untranslated "$X" | grep -A 2147483647 "^#:" + msgattrib --fuzzy "$X" | grep -A 2147483647 "^#:" + ) + if [ -n "$todo" ]; then + echo "TODO for translation $X:" + echo "$todo" + echo + fi +done -- 2.39.2