summaryrefslogtreecommitdiff
path: root/src/caja-connect-server-dialog-main.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-23 13:52:08 +0100
committerraveit65 <[email protected]>2022-07-21 19:33:50 +0200
commit92f751b2ae5a3bf90e39434255fec503cf471be7 (patch)
treec4005557f4376a3de2cefdc5af65f80e512ac514 /src/caja-connect-server-dialog-main.c
parent77ae01b92666ab5554b168cf207ce37ded4deb2e (diff)
downloadcaja-92f751b2ae5a3bf90e39434255fec503cf471be7.tar.bz2
caja-92f751b2ae5a3bf90e39434255fec503cf471be7.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.c4
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 2d646c67..0f531869 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))