From 0ff5527f5b057d26e75ea7c44ec4ea809c140cdc Mon Sep 17 00:00:00 2001 From: rbuj Date: Mon, 8 Feb 2021 11:13:05 +0100 Subject: build: allow users to disable gettext support (--disable-nls) --- src/main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index a9e297d..292f4b1 100644 --- a/src/main.c +++ b/src/main.c @@ -317,12 +317,16 @@ main (int argc, char **argv) program_argv0 = argv[0]; +#ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ context = g_option_context_new (N_("- Create and modify an archive")); +#ifdef ENABLE_NLS g_option_context_set_translation_domain (context, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ g_option_context_add_main_entries (context, options, GETTEXT_PACKAGE); g_option_context_add_group (context, gtk_get_option_group (TRUE)); -- cgit v1.2.1