summaryrefslogtreecommitdiff
path: root/capplet/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 /capplet/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 'capplet/main.c')
-rw-r--r--capplet/main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/capplet/main.c b/capplet/main.c
index 30c2ac6..10f82e7 100644
--- a/capplet/main.c
+++ b/capplet/main.c
@@ -68,9 +68,11 @@ int main(int argc, char* argv[])
GError* error;
GtkWidget* dialog;
+#ifdef ENABLE_NLS
bindtextdomain(GETTEXT_PACKAGE, LOCALE_DIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
textdomain(GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
error = NULL;