From 6de5a2680760436fe15ee16ed530f23ef1ced33a Mon Sep 17 00:00:00 2001 From: rbuj Date: Sat, 23 Jan 2021 13:52:08 +0100 Subject: build: allow users to disable gettext support (--disable-nls) --- src/caja-connect-server-dialog-main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/caja-connect-server-dialog-main.c') diff --git a/src/caja-connect-server-dialog-main.c b/src/caja-connect-server-dialog-main.c index 9a9b3cf7..a31e3bd3 100644 --- a/src/caja-connect-server-dialog-main.c +++ b/src/caja-connect-server-dialog-main.c @@ -109,15 +109,19 @@ main (int argc, char *argv[]) GOptionContext *context; GError *error; +#ifdef ENABLE_NLS bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); textdomain (GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ error = NULL; /* Translators: This is the --help description for the connect to server app, the initial newlines are between the command line arg and the description */ context = g_option_context_new (N_("\n\nAdd connect to server mount")); +#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, &error)) -- cgit v1.2.1