git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 1/3] i18n: apply: mark plural string for translation

From
Vasco Almeida <vascomalmeida@sapo.pt>
Date
Oct 14, 2016, 11:43 UTC
Message-ID
<20161014114337.18684-1-vascomalmeida@sapo.pt>
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
Next: Vasco Almeida
Message 1 of 4 in “i18n: apply: mark plural string for translation”
  1. 1/3 i18n: apply: mark plural string for translationVasco Almeida, Oct 14, 2016
  2. 2/3 i18n: apply: mark info messages for translationVasco Almeida, Oct 14, 2016
  3. 3/3 i18n: apply: mark error messages for translationVasco Almeida, Oct 14, 2016
  4. Junio C HamanoOct 14, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.