]> git.ipfire.org Git - thirdparty/git.git/blobdiff - gettext.c
Sync with 2.30.9
[thirdparty/git.git] / gettext.c
index af2413b47e85223536b63f90180dd4c0ac2404d3..16caf5432a9e6c593d96dc0d26c95e51c040d553 100644 (file)
--- a/gettext.c
+++ b/gettext.c
@@ -101,6 +101,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);
@@ -120,6 +122,8 @@ void git_setup_gettext(void)
        init_gettext_charset("git");
        textdomain("git");
 
+       git_gettext_enabled = 1;
+
        free(p);
 }