From 92f751b2ae5a3bf90e39434255fec503cf471be7 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) --- src/file-manager/fm-desktop-icon-view.c | 2 ++ src/file-manager/fm-directory-view.c | 2 ++ src/file-manager/fm-icon-view.c | 2 ++ src/file-manager/fm-list-view.c | 2 ++ 4 files changed, 8 insertions(+) (limited to 'src/file-manager') diff --git a/src/file-manager/fm-desktop-icon-view.c b/src/file-manager/fm-desktop-icon-view.c index ff0fc8eb..5decd45c 100644 --- a/src/file-manager/fm-desktop-icon-view.c +++ b/src/file-manager/fm-desktop-icon-view.c @@ -803,7 +803,9 @@ real_merge_menus (FMDirectoryView *view) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("DesktopViewActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ desktop_view->priv->desktop_action_group = action_group; gtk_action_group_add_actions (action_group, desktop_view_entries, G_N_ELEMENTS (desktop_view_entries), diff --git a/src/file-manager/fm-directory-view.c b/src/file-manager/fm-directory-view.c index 70db80d8..67f10bbb 100644 --- a/src/file-manager/fm-directory-view.c +++ b/src/file-manager/fm-directory-view.c @@ -7775,7 +7775,9 @@ real_merge_menus (FMDirectoryView *view) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("DirViewActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ view->details->dir_action_group = action_group; gtk_action_group_add_actions (action_group, directory_view_entries, G_N_ELEMENTS (directory_view_entries), diff --git a/src/file-manager/fm-icon-view.c b/src/file-manager/fm-icon-view.c index 4af14ea6..1c600fa9 100644 --- a/src/file-manager/fm-icon-view.c +++ b/src/file-manager/fm-icon-view.c @@ -1822,7 +1822,9 @@ fm_icon_view_merge_menus (FMDirectoryView *view) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("IconViewActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ icon_view->details->icon_action_group = action_group; gtk_action_group_add_actions (action_group, icon_view_entries, G_N_ELEMENTS (icon_view_entries), diff --git a/src/file-manager/fm-list-view.c b/src/file-manager/fm-list-view.c index c3980b90..8db0b2ca 100644 --- a/src/file-manager/fm-list-view.c +++ b/src/file-manager/fm-list-view.c @@ -2648,7 +2648,9 @@ fm_list_view_merge_menus (FMDirectoryView *view) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; action_group = gtk_action_group_new ("ListViewActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (action_group, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ list_view->details->list_action_group = action_group; gtk_action_group_add_actions (action_group, list_view_entries, G_N_ELEMENTS (list_view_entries), -- cgit v1.2.1