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

[PATCH v2] help: report on whether or not gettext is enabled

From
Jiang Xin <worldhello.net@gmail.com>
Date
Jan 17, 2026, 13:59 UTC
Message-ID
<251e1b533ca2e38a9bedae44360ce636cdea4bc3.1768657640.git.zhiyou.jx@alibaba-inc.com>
In-Reply-To
<xmqqo6mta7bg.fsf@gitster.g>
From: Jiang Xin <zhiyou.jx@alibaba-inc.com>

When users report that Git has no localized output, we need to check not only their locale settings, but also whether Git was built with GETTEXT support in the first place.

Expose this information via the existing build info output by adding a "gettext: enabled" line to `git version --build-options` (and therefore also to `git bugreport`) when `NO_GETTEXT` is not defined at build time.

Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
---
 help.c | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/help.c b/help.c
index 20e114432d..3c36d9c218 100644
--- a/help.c
+++ b/help.c
@@ -799,6 +799,9 @@ void get_version_info(struct strbuf *buf, int show_build_options)
 
 		if (fsmonitor_ipc__is_supported())
 			strbuf_addstr(buf, "feature: fsmonitor--daemon\n");
+#if !defined NO_GETTEXT
+		strbuf_addstr(buf, "gettext: enabled\n");
+#endif
 #if defined LIBCURL_VERSION
 		strbuf_addf(buf, "libcurl: %s\n", LIBCURL_VERSION);
 #endif
-- 
2.52.0.435.g8745eae506
Previous: Junio C HamanoNext: Patrick Steinhardt
Message 3 of 7 in “help: report on whether or not gettext is enabled”
  1. help: report on whether or not gettext is enabledJiang Xin, Jan 16, 2026
  2. Junio C HamanoJan 16, 2026
  3. help: report on whether or not gettext is enabledJiang Xin, Jan 17, 2026
  4. Patrick SteinhardtJan 19, 2026
  5. Jiang XinJan 19, 2026
  6. Junio C HamanoJan 20, 2026
  7. Patrick SteinhardtJan 20, 2026

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.