summaryrefslogtreecommitdiff
path: root/src/caja-window-menus.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-01-23 13:52:08 +0100
committerraveit65 <[email protected]>2021-02-07 21:38:35 +0100
commit6de5a2680760436fe15ee16ed530f23ef1ced33a (patch)
treebe4c64c279750dab39534f9963ef228c3246fd24 /src/caja-window-menus.c
parentcb9ed81342334d3ef5dde43a60ab0325930a2874 (diff)
downloadcaja-6de5a2680760436fe15ee16ed530f23ef1ced33a.tar.bz2
caja-6de5a2680760436fe15ee16ed530f23ef1ced33a.tar.xz
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'src/caja-window-menus.c')
-rw-r--r--src/caja-window-menus.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/caja-window-menus.c b/src/caja-window-menus.c
index 953f4fb5..2e2b7b8b 100644
--- a/src/caja-window-menus.c
+++ b/src/caja-window-menus.c
@@ -990,7 +990,9 @@ caja_window_initialize_menus (CajaWindow *window)
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
action_group = gtk_action_group_new ("ShellActions");
+#ifdef ENABLE_NLS
gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE);
+#endif /* ENABLE_NLS */
window->details->main_action_group = action_group;
gtk_action_group_add_actions (action_group,
main_entries, G_N_ELEMENTS (main_entries),
@@ -1190,7 +1192,9 @@ caja_window_load_extension_menus (CajaWindow *window)
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
action_group = gtk_action_group_new ("ExtensionsMenuGroup");
window->details->extensions_menu_action_group = action_group;
+#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 (window->details->ui_manager, action_group, 0);
g_object_unref (action_group); /* owned by ui manager */