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

[PATCH] builtin/diagnose.c: don't translate the two mode values

From
Alex Henrie <alexhenrie24@gmail.com>
Date
Sep 20, 2022, 05:06 UTC
Message-ID
<20220920050632.326307-1-alexhenrie24@gmail.com>

These strings are not translatable in the diagnose_options array in diagnose.c. Don't translate them in builtin/diagnose.c either.

Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
---
 builtin/diagnose.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/diagnose.c b/builtin/diagnose.c
index cd260c2015..576e0e8e38 100644
--- a/builtin/diagnose.c
+++ b/builtin/diagnose.c
@@ -22,7 +22,7 @@ int cmd_diagnose(int argc, const char **argv, const char *prefix)
 			   N_("specify a destination for the diagnostics archive")),
 		OPT_STRING('s', "suffix", &option_suffix, N_("format"),
 			   N_("specify a strftime format suffix for the filename")),
-		OPT_CALLBACK_F(0, "mode", &mode, N_("(stats|all)"),
+		OPT_CALLBACK_F(0, "mode", &mode, "(stats|all)",
 			       N_("specify the content of the diagnostic archive"),
 			       PARSE_OPT_NONEG, option_parse_diagnose),
 		OPT_END()
-- 
2.37.3
Next: Derrick Stolee
Message 1 of 3 in “builtin/diagnose.c: don't translate the two mode values”
  1. builtin/diagnose.c: don't translate the two mode valuesAlex Henrie, Sep 20, 2022
  2. Derrick StoleeSep 20, 2022
  3. Alex HenrieSep 20, 2022

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.