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

[PATCHv2] Add hint interactive cleaning

From
Jean-Noel Avila <jn.avila@free.fr>
Date
Mar 1, 2015, 11:58 UTC
Message-ID
<1425211105-18873-1-git-send-email-jn.avila@free.fr>
In-Reply-To
<1425137944-13667-1-git-send-email-jn.avila@free.fr>
For translators, specify that a  y/N reply is needed.
Signed-off-by: Jean-Noel Avila <jn.avila@free.fr>
---
 builtin/clean.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/builtin/clean.c b/builtin/clean.c
index 7e7fdcf..98c103f 100644
--- a/builtin/clean.c
+++ b/builtin/clean.c
@@ -754,7 +754,8 @@ static int ask_each_cmd(void)
 		/* Ctrl-D should stop removing files */
 		if (!eof) {
 			qname = quote_path_relative(item->string, NULL, &buf);
-			printf(_("remove %s? "), qname);
+			/* TRANSLATORS: Make sure to keep [y/N] as is */
+			printf(_("Remove %s [y/N]? "), qname);
 			if (strbuf_getline(&confirm, stdin, '\n') != EOF) {
 				strbuf_trim(&confirm);
 			} else {
-- 
2.3.0
Previous: Junio C HamanoNext: Junio C Hamano
Message 8 of 9 in “Internationalization and yes/no prompts”
  1. Pierre-Olivier VaresFeb 23, 2015
  2. Junio C HamanoFeb 24, 2015
  3. Jean-Noël AvilaFeb 25, 2015
  4. Add hint for translators for y/n reply.Jean-Noel Avila, Feb 28, 2015
  5. Jiang XinMar 1, 2015
  6. Jiang XinMar 1, 2015
  7. Junio C HamanoMar 1, 2015
  8. [PATCHv2] Add hint interactive cleaningJean-Noel Avila, Mar 1, 2015
  9. Junio C HamanoMar 2, 2015

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.