From: Rudolf Polzer Date: Wed, 22 Feb 2012 13:12:17 +0000 (+0100) Subject: even better X-Git-Tag: xonotic-v0.6.0~53^2~21 X-Git-Url: https://de.git.xonotic.org/?a=commitdiff_plain;h=9ebd314606afb41e855994056f3e98577dcf19ff;p=xonotic%2Fxonotic-data.pk3dir.git even better --- diff --git a/check-translations.sh b/check-translations.sh index ea747baad..8226e45a5 100755 --- a/check-translations.sh +++ b/check-translations.sh @@ -69,8 +69,8 @@ EOF msgmerge -F -U "$X" "$VM".dat.pot >&2 msgattrib --untranslated "$X" | grep . > "$X".untranslated || rm -f "$X".untranslated msgattrib --fuzzy "$X" | grep . > "$X".fuzzy || rm -f "$X".fuzzy - nu=$((`grep -c ^#: "$X".untranslated` + 0)) - nf=$((`grep -c ^#: "$X".fuzzy` + 0)) + nu=$((`grep -c ^#: "$X".untranslated 2>/dev/null` + 0)) + nf=$((`grep -c ^#: "$X".fuzzy 2>/dev/null` + 0)) n=$(($nu + $nf)) if [ $n -gt 0 ]; then echo "TODO for translation $X:"