diff options
| author | Jiang Xin <zhiyou.jx@alibaba-inc.com> | 2026-01-17 21:59:38 +0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-17 09:57:59 -0800 |
| commit | de985d69f66960cb512b38f2e7bc83d2a92d391e (patch) | |
| tree | 71ffbdd92421d8dd1eafbc4d148a8f5b59d2e78b | |
| parent | 9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed (diff) | |
| download | git-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>
| -rw-r--r-- | help.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |
