From: Jiang Xin Date: Sat, 17 Jan 2026 13:59:38 +0000 (+0800) Subject: help: report on whether or not gettext is enabled X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de985d69f66960cb512b38f2e7bc83d2a92d391e;p=thirdparty%2Fgit.git help: report on whether or not gettext is enabled 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 Signed-off-by: Junio C Hamano --- diff --git a/help.c b/help.c index 5854dd4a7e..8d3e4f3f64 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