X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=check-translations.sh;h=ee80688da293dec60b0b9de50a73ef8d82b4a66e;hb=9624636e903f783160a12c4127bff4f318544c76;hp=41653ca00e0d61e063f4ce1f68d56e67245caa93;hpb=d3726dc851cf78ec77ca6aa51182079c5b84ec19;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/check-translations.sh b/check-translations.sh index 41653ca00..ee80688da 100755 --- a/check-translations.sh +++ b/check-translations.sh @@ -62,10 +62,13 @@ if [ x"$mode" = x"txt" ]; then echo >&2 "Percent: $p" l=${X#common.} l=${l%.po} - item=`grep "^$l " languages.txt || echo "$l $l \"$l (0%)\""` - if [ "$p" -gt 50 ]; then - printf "%s\n" "$item" | sed -e "s/([0-9][0-9]*%)/($p%)/" + if ! item=`grep "^$l " languages.txt`; then + if [ "$p" -lt 50 ]; then + continue + fi + item="$l $l \"$l (0%)\"" fi + printf "%s\n" "$item" | sed -e "s/([0-9][0-9]*%)/($p%)/" done fi