From 66de6ed56647df275f2844eb6106349932991579 Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 8 Feb 2021 13:36:28 +0100 Subject: build: allow users to disable gettext support (--disable-nls) --- shell/main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'shell/main.c') diff --git a/shell/main.c b/shell/main.c index 7a4658be..79b92524 100644 --- a/shell/main.c +++ b/shell/main.c @@ -231,10 +231,12 @@ main (int argc, char *argv[]) bindtextdomain (GETTEXT_PACKAGE, ev_get_locale_dir()); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); -#endif +#endif /* ENABLE_NLS */ context = g_option_context_new (N_("MATE Document Viewer")); +#ifdef ENABLE_NLS g_option_context_set_translation_domain(context, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ g_option_context_add_main_entries (context, goption_options, GETTEXT_PACKAGE); g_option_context_add_group (context, egg_sm_client_get_option_group ()); g_option_context_add_group (context, gtk_get_option_group (TRUE)); -- cgit v1.2.1