diff options
author | rbuj <[email protected]> | 2021-01-25 19:46:32 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-02-05 21:36:53 +0100 |
commit | 8a653210e2ecf00c11bd8cdf44af2d8c4814fadf (patch) | |
tree | 78693278cad2311662a583f6a0b6565ec395a292 /src/eom-window.c | |
parent | afd8f48f9b71f68953bc8e6bf4859031475aee0f (diff) | |
download | eom-8a653210e2ecf00c11bd8cdf44af2d8c4814fadf.tar.bz2 eom-8a653210e2ecf00c11bd8cdf44af2d8c4814fadf.tar.xz |
build: allow users to disable gettext support (--disable-nls)
Diffstat (limited to 'src/eom-window.c')
-rw-r--r-- | src/eom-window.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/eom-window.c b/src/eom-window.c index 337f16f..a431674 100644 --- a/src/eom-window.c +++ b/src/eom-window.c @@ -4412,8 +4412,10 @@ eom_window_construct_ui (EomWindow *window) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; priv->actions_window = gtk_action_group_new ("MenuActionsWindow"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (priv->actions_window, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ gtk_action_group_add_actions (priv->actions_window, action_entries_window, @@ -4430,8 +4432,10 @@ eom_window_construct_ui (EomWindow *window) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; priv->actions_image = gtk_action_group_new ("MenuActionsImage"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (priv->actions_image, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ gtk_action_group_add_actions (priv->actions_image, action_entries_image, @@ -4450,8 +4454,10 @@ eom_window_construct_ui (EomWindow *window) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; priv->actions_collection = gtk_action_group_new ("MenuActionsCollection"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (priv->actions_collection, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ gtk_action_group_add_actions (priv->actions_collection, action_entries_collection, @@ -4536,8 +4542,10 @@ eom_window_construct_ui (EomWindow *window) G_GNUC_BEGIN_IGNORE_DEPRECATIONS; priv->actions_recent = gtk_action_group_new ("RecentFilesActions"); +#ifdef ENABLE_NLS gtk_action_group_set_translation_domain (priv->actions_recent, GETTEXT_PACKAGE); +#endif /* ENABLE_NLS */ G_GNUC_END_IGNORE_DEPRECATIONS; g_signal_connect (gtk_recent_manager_get_default (), "changed", |