Git development
 help / color / mirror / Atom feed
* [PATCH 1/3] i18n: apply: mark plural string for translation
@ 2016-10-14 11:43 Vasco Almeida
  2016-10-14 11:43 ` [PATCH 2/3] i18n: apply: mark info messages " Vasco Almeida
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Vasco Almeida @ 2016-10-14 11:43 UTC (permalink / raw)
  To: git
  Cc: Vasco Almeida, Jiang Xin, Ævar Arnfjörð Bjarmason,
	Jean-Noël AVILA

Mark plural string for translation using Q_().

Signed-off-by: Vasco Almeida <vascomalmeida@sapo.pt>
---
 apply.c | 10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/apply.c b/apply.c
index b03d274..201d3a7 100644
--- a/apply.c
+++ b/apply.c
@@ -4869,10 +4869,12 @@ int apply_all_patches(struct apply_state *state,
 			goto end;
 		}
 		if (state->applied_after_fixing_ws && state->apply)
-			warning("%d line%s applied after"
-				" fixing whitespace errors.",
-				state->applied_after_fixing_ws,
-				state->applied_after_fixing_ws == 1 ? "" : "s");
+			warning(Q_("%d line applied after"
+				   " fixing whitespace errors.",
+				   "%d lines applied after"
+				   " fixing whitespace errors.",
+				   state->applied_after_fixing_ws),
+				state->applied_after_fixing_ws);
 		else if (state->whitespace_error)
 			warning(Q_("%d line adds whitespace errors.",
 				   "%d lines add whitespace errors.",
-- 
2.10.1.459.g5fd885d


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

end of thread, other threads:[~2016-10-14 17:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-14 11:43 [PATCH 1/3] i18n: apply: mark plural string for translation Vasco Almeida
2016-10-14 11:43 ` [PATCH 2/3] i18n: apply: mark info messages " Vasco Almeida
2016-10-14 11:43 ` [PATCH 3/3] i18n: apply: mark error " Vasco Almeida
2016-10-14 17:55 ` [PATCH 1/3] i18n: apply: mark plural string " Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox