X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=check-translations.sh;h=a7406532d8d61829e952a19d91ccc5ccb0e28494;hb=75a369ff551c693e05841164bfedc9c3d21838d0;hp=facee4a7bc8fc4d49fe5d2f2089ed56d4c227037;hpb=9a6a0128b84883350982d582b14f5c25fa5a6881;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/check-translations.sh b/check-translations.sh index facee4a7b..a7406532d 100755 --- a/check-translations.sh +++ b/check-translations.sh @@ -36,7 +36,8 @@ fi if [ x"$mode" = x"txt" ]; then { - echo "en English \"English\"" + item=`grep "^en " languages.txt` + echo "$item" for X in common.*.po; do [ -f "$X" ] || continue if [ -n "$language" ]; then @@ -67,9 +68,9 @@ if [ x"$mode" = x"txt" ]; then if [ "$p" -lt 50 ]; then continue fi - item="$l $l \"$l (0%)\"" + item="$l $l \"$l\" 0%" fi - printf "%s\n" "$item" | sed -e "s/([0-9][0-9]*%)/($p%)/" + printf "%s\n" "$item" | sed -e "s/[0-9][0-9]*%/$p%/" done } | tr '"' '\t' | sort -k3 | tr '\t' '"' fi