aboutsummaryrefslogtreecommitdiffstats
path: root/gettext.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-04-24 22:31:32 -0700
committerJunio C Hamano <gitster@pobox.com>2023-04-24 22:31:32 -0700
commit9ce9dea4e1c2419cca126d29fa7730baa078a11b (patch)
tree6bec2aeb2df40cfe1435c476c9e48da58cebd875 /gettext.c
parent7580f92ffa970b9484ac214f7b53cec5e26ca4bc (diff)
parent0d1bd1dfb37ef25e1911777c94129fc769ffec38 (diff)
downloadgit-9ce9dea4e1c2419cca126d29fa7730baa078a11b.tar.gz
Sync with Git 2.40.1
Diffstat (limited to 'gettext.c')
-rw-r--r--gettext.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gettext.c b/gettext.c
index 5f34870830..f27e94407b 100644
--- a/gettext.c
+++ b/gettext.c
@@ -102,6 +102,8 @@ static void init_gettext_charset(const char *domain)
setlocale(LC_CTYPE, "C");
}
+int git_gettext_enabled = 0;
+
void git_setup_gettext(void)
{
const char *podir = getenv(GIT_TEXT_DOMAIN_DIR_ENVIRONMENT);
@@ -121,6 +123,8 @@ void git_setup_gettext(void)
init_gettext_charset("git");
textdomain("git");
+ git_gettext_enabled = 1;
+
free(p);
}