From e50a1907e04a320bf9e054182b8dbeb4c52eb076 Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 13 Feb 2021 12:32:06 +0100 Subject: build: allow users to disable gettext support (--disable-nls) --- capplets/common/capplet-util.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'capplets/common') diff --git a/capplets/common/capplet-util.c b/capplets/common/capplet-util.c index c78ab2d7..a5615a06 100644 --- a/capplets/common/capplet-util.c +++ b/capplets/common/capplet-util.c @@ -22,7 +22,7 @@ */ #ifdef HAVE_CONFIG_H -# include +#include #endif #include @@ -242,10 +242,12 @@ capplet_init (GOptionContext *context, bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); -#endif +#endif /* ENABLE_NLS */ if (context) { +#ifdef ENABLE_NLS g_option_context_set_translation_domain (context, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ g_option_context_add_group (context, gtk_get_option_group (TRUE)); if (!g_option_context_parse (context, argc, argv, &err)) { -- cgit v1.2.1