X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=git-gui%2Fpo%2Fpo2msg.sh;h=b7c4bf3fdffb3d04b8c01b25e99a706e499de0d1;hb=847d10f56d7853cd0e139a7c2e6ad0ad2de5c464;hp=c63248e3752b8b479f75ad2fe772dd40f684be54;hpb=fd200790dc518f297bfd538a53e232802904f1de;p=git.git diff --git a/git-gui/po/po2msg.sh b/git-gui/po/po2msg.sh index c63248e37..b7c4bf3fd 100644 --- a/git-gui/po/po2msg.sh +++ b/git-gui/po/po2msg.sh @@ -127,7 +127,26 @@ foreach file $files { } if {$show_statistics} { - puts [concat "$translated_count translated messages, " \ - "$fuzzy_count fuzzy ones, " \ - "$not_translated_count untranslated ones."] + set str "" + + append str "$translated_count translated message" + if {$translated_count != 1} { + append str s + } + + if {$fuzzy_count > 1} { + append str ", $fuzzy_count fuzzy translation" + if {$fuzzy_count != 1} { + append str s + } + } + if {$not_translated_count > 0} { + append str ", $not_translated_count untranslated message" + if {$not_translated_count != 1} { + append str s + } + } + + append str . + puts $str }