summaryrefslogtreecommitdiff
path: root/help.c
diff options
context:
space:
mode:
authorJiang Xin <zhiyou.jx@alibaba-inc.com>2026-01-17 21:59:38 +0800
committerJunio C Hamano <gitster@pobox.com>2026-01-17 09:57:59 -0800
commitde985d69f66960cb512b38f2e7bc83d2a92d391e (patch)
tree71ffbdd92421d8dd1eafbc4d148a8f5b59d2e78b /help.c
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed (diff)
downloadgit-de985d69f66960cb512b38f2e7bc83d2a92d391e.tar.xz
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 <zhiyou.jx@alibaba-inc.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'help.c')
-rw-r--r--help.c3
1 files changed, 3 insertions, 0 deletions
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