summaryrefslogtreecommitdiff
path: root/git-gui/po
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2008-01-23 21:37:12 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2008-01-23 21:37:12 -0800
commitcab31fa076253fcfafa7572c24e40f12a1e09ae3 (patch)
tree00d6cf078f517f759499c5e44799682377ace1b9 /git-gui/po
parentgit-commit: exit non-zero if we fail to commit the index (diff)
parentgit-gui: Correctly cleanup msgfmt '1 message untranslated' output (diff)
downloadtgif-cab31fa076253fcfafa7572c24e40f12a1e09ae3.tar.xz
Merge git://repo.or.cz/git-gui
* git://repo.or.cz/git-gui: git-gui: Correctly cleanup msgfmt '1 message untranslated' output git-gui: Make the statistics of po2msg match those of msgfmt git-gui: Fallback to Tcl based po2msg.sh if msgfmt isn't available git-gui: Work around random missing scrollbar in revision list
Diffstat (limited to 'git-gui/po')
-rw-r--r--git-gui/po/po2msg.sh25
1 files changed, 22 insertions, 3 deletions
diff --git a/git-gui/po/po2msg.sh b/git-gui/po/po2msg.sh
index c63248e375..b7c4bf3fdf 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
}