diff options
author | rbuj <[email protected]> | 2021-01-23 13:52:08 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-07 21:38:35 +0100 |
commit | 6de5a2680760436fe15ee16ed530f23ef1ced33a (patch) | |
tree | be4c64c279750dab39534f9963ef228c3246fd24 /src/caja-connect-server-dialog-main.c | |
parent | cb9ed81342334d3ef5dde43a60ab0325930a2874 (diff) | |
download | caja-6de5a2680760436fe15ee16ed530f23ef1ced33a.tar.bz2 caja-6de5a2680760436fe15ee16ed530f23ef1ced33a.tar.xz |
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'src/caja-connect-server-dialog-main.c')
-rw-r--r-- | src/caja-connect-server-dialog-main.c | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |