summaryrefslogtreecommitdiff
path: root/mate-session/main.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-02-18 10:59:50 +0100
committerraveit65 <[email protected]>2021-02-24 16:05:39 +0100
commitd105267f775b4371a670f016c9fbce7e81b2632a (patch)
treed3085f4d43d7fdcb41d80636404ac15720388ce3 /mate-session/main.c
parent036594c5542272f719994a62a4663fce998e26f2 (diff)
downloadmate-session-manager-d105267f775b4371a670f016c9fbce7e81b2632a.tar.bz2
mate-session-manager-d105267f775b4371a670f016c9fbce7e81b2632a.tar.xz
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'mate-session/main.c')
-rw-r--r--mate-session/main.c3
1 files changed, 2 insertions, 1 deletions
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 <config.h>
-#include <libintl.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
@@ -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;