Skip to content

Commit de985d6

Browse files
jiangxingitster
authored andcommitted
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>
1 parent 9a2fb14 commit de985d6

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

help.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,9 @@ void get_version_info(struct strbuf *buf, int show_build_options)
799799

800800
if (fsmonitor_ipc__is_supported())
801801
strbuf_addstr(buf, "feature: fsmonitor--daemon\n");
802+
#if !defined NO_GETTEXT
803+
strbuf_addstr(buf, "gettext: enabled\n");
804+
#endif
802805
#if defined LIBCURL_VERSION
803806
strbuf_addf(buf, "libcurl: %s\n", LIBCURL_VERSION);
804807
#endif

0 commit comments

Comments
 (0)