git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] merge-recursive: separate message for common ancestors
@ 2012-08-05 17:56 Ralf Thielow
  2012-08-05 18:44 ` Junio C Hamano
  0 siblings, 1 reply; 7+ messages in thread
From: Ralf Thielow @ 2012-08-05 17:56 UTC (permalink / raw)
  To: git; +Cc: gitster, worldhello.net, Ralf Thielow

The function "merge_recursive" prints the count of common
ancestors as "found %u common ancestor(s):". At least for
better translation, we should use a singular and a plural
form of this message.

Signed-off-by: Ralf Thielow <ralf.thielow@gmail.com>
---
 merge-recursive.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/merge-recursive.c b/merge-recursive.c
index 8903a73..39b2e16 100644
--- a/merge-recursive.c
+++ b/merge-recursive.c
@@ -1915,7 +1915,10 @@ int merge_recursive(struct merge_options *o,
 	}
 
 	if (show(o, 5)) {
-		output(o, 5, _("found %u common ancestor(s):"), commit_list_count(ca));
+		unsigned cnt = commit_list_count(ca);
+
+		output(o, 5, Q_("found %u common ancestor:",
+				"found %u common ancestors:", cnt), cnt);
 		for (iter = ca; iter; iter = iter->next)
 			output_commit_title(o, iter->item);
 	}
-- 
1.7.12.rc1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-08-06 17:31 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-05 17:56 [PATCH] merge-recursive: separate message for common ancestors Ralf Thielow
2012-08-05 18:44 ` Junio C Hamano
2012-08-05 18:55   ` Ralf Thielow
2012-08-05 19:32     ` Junio C Hamano
2012-08-06  1:34       ` Jiang Xin
2012-08-06 17:04         ` Jiang Xin
2012-08-06 17:31           ` [PATCH] l10n: de.po: translate one new message Ralf Thielow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).