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) --- libcaja-private/caja-clipboard.c | 2 ++ libcaja-private/caja-ui-utilities.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'libcaja-private') diff --git a/libcaja-private/caja-clipboard.c b/libcaja-private/caja-clipboard.c index 874909b4..1821d6ad 100644 --- a/libcaja-private/caja-clipboard.c +++ b/libcaja-private/caja-clipboard.c @@ -495,7 +495,9 @@ initialize_clipboard_component_with_callback_data (GtkEditable *target, G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("ClipboardActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ gtk_action_group_add_actions (action_group, clipboard_entries, G_N_ELEMENTS (clipboard_entries), target); diff --git a/libcaja-private/caja-ui-utilities.c b/libcaja-private/caja-ui-utilities.c index 1b621777..9b184164 100644 --- a/libcaja-private/caja-ui-utilities.c +++ b/libcaja-private/caja-ui-utilities.c @@ -63,7 +63,9 @@ caja_ui_prepare_merge_ui (GtkUIManager *ui_manager, *merge_id = gtk_ui_manager_new_merge_id (ui_manager); G_GNUC_BEGIN_IGNORE_DEPRECATIONS; *action_group = gtk_action_group_new (name); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (*action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ G_GNUC_END_IGNORE_DEPRECATIONS; gtk_ui_manager_insert_action_group (ui_manager, *action_group, 0); g_object_unref (*action_group); /* owned by ui manager */ -- cgit v1.2.1