mirror of
https://github.com/git/git.git
synced 2026-01-21 06:17:19 +09:00
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>
This commit is contained in:
parent
9a2fb147f2
commit
de985d69f6
3
help.c
3
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user