diff options
author | rbuj <[email protected]> | 2021-02-08 13:36:28 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-10 23:58:25 +0100 |
commit | 66de6ed56647df275f2844eb6106349932991579 (patch) | |
tree | 56b68e1244af645727ece13032f2ba89fe6cb68f /previewer | |
parent | 6b159d0665c67c3c78c2968673e24bf45c2430d2 (diff) | |
download | atril-66de6ed56647df275f2844eb6106349932991579.tar.bz2 atril-66de6ed56647df275f2844eb6106349932991579.tar.xz |
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'previewer')
-rw-r--r-- | previewer/ev-previewer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/previewer/ev-previewer.c b/previewer/ev-previewer.c index e96db773..22c7ce4c 100644 --- a/previewer/ev-previewer.c +++ b/previewer/ev-previewer.c @@ -102,10 +102,12 @@ main (gint argc, gchar **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 (_("MATE Document Previewer")); +#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, gtk_get_option_group (TRUE)); |