From d105267f775b4371a670f016c9fbce7e81b2632a Mon Sep 17 00:00:00 2001 From: rbuj Date: Thu, 18 Feb 2021 10:59:50 +0100 Subject: build: allow users to disable gettext support (--disable-nls) --- mate-session/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mate-session') diff --git a/mate-session/main.c b/mate-session/main.c index 56795ac..25fe52d 100644 --- a/mate-session/main.c +++ b/mate-session/main.c @@ -21,7 +21,6 @@ #include -#include #include #include #include @@ -622,9 +621,11 @@ int main(int argc, char** argv) gsm_util_init_error(TRUE, "%s", error->message); } +#ifdef ENABLE_NLS bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR); bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ sa.sa_handler = SIG_IGN; sa.sa_flags = 0; -- cgit v1.2.1