summaryrefslogtreecommitdiff
path: root/libcaja-private
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 /libcaja-private
parent77ae01b92666ab5554b168cf207ce37ded4deb2e (diff)
downloadcaja-92f751b2ae5a3bf90e39434255fec503cf471be7.tar.bz2
caja-92f751b2ae5a3bf90e39434255fec503cf471be7.tar.xz
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-clipboard.c2
-rw-r--r--libcaja-private/caja-ui-utilities.c2
2 files changed, 4 insertions, 0 deletions
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 aeeec9eb..30b0cff7 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 */