diff --git a/ChangeLog b/ChangeLog index f141611296..8a29ba0114 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2005-11-09 David Hampton + + * src/gnome-utils/gnc-embedded-window.c: + * src/gnome-utils/gnc-menu-extensions.c: + * src/gnome-utils/gnc-plugin-menu-additions.c: + * src/gnome-utils/gnc-main-window.c: + * src/gnome-utils/gnc-plugin-page.c: Andreas Köhler's patch to re-enable translation of menus and icons. + 2005-11-09 Scott Oonk * src/register/register-gnome/gnucash-item-edit.c: This patch diff --git a/src/gnome-utils/gnc-embedded-window.c b/src/gnome-utils/gnc-embedded-window.c index e6fb3e4c16..83eac14670 100644 --- a/src/gnome-utils/gnc-embedded-window.c +++ b/src/gnome-utils/gnc-embedded-window.c @@ -311,6 +311,7 @@ gnc_embedded_window_new (const gchar *action_group_name, /* Create menu and toolbar information */ priv->action_group = gtk_action_group_new (action_group_name); + gtk_action_group_set_translation_domain(priv->action_group, GETTEXT_PACKAGE); gtk_action_group_add_actions (priv->action_group, action_entries, n_action_entries, user_data); gtk_ui_manager_insert_action_group (window->ui_merge, priv->action_group, 0); diff --git a/src/gnome-utils/gnc-main-window.c b/src/gnome-utils/gnc-main-window.c index 3b091a8720..203212781c 100644 --- a/src/gnome-utils/gnc-main-window.c +++ b/src/gnome-utils/gnc-main-window.c @@ -1454,6 +1454,7 @@ gnc_main_window_merge_actions (GncMainWindow *window, priv = GNC_MAIN_WINDOW_GET_PRIVATE(window); entry = g_new0 (MergedActionEntry, 1); entry->action_group = gtk_action_group_new (group_name); + gtk_action_group_set_translation_domain (entry->action_group, GETTEXT_PACKAGE); gtk_action_group_add_actions (entry->action_group, actions, n_actions, data); gtk_ui_manager_insert_action_group (window->ui_merge, entry->action_group, 0); entry->merge_id = gtk_ui_manager_add_ui_from_file (window->ui_merge, pathname, &error); @@ -1653,6 +1654,7 @@ gnc_main_window_setup_window (GncMainWindow *window) /* Create menu and toolbar information */ priv->action_group = gtk_action_group_new ("MainWindowActions"); + gtk_action_group_set_translation_domain (priv->action_group, GETTEXT_PACKAGE); gtk_action_group_add_actions (priv->action_group, gnc_menu_actions, gnc_menu_n_actions, window); gtk_action_group_add_toggle_actions (priv->action_group, diff --git a/src/gnome-utils/gnc-menu-extensions.c b/src/gnome-utils/gnc-menu-extensions.c index 58b9ff20f4..aa05bb1b94 100644 --- a/src/gnome-utils/gnc-menu-extensions.c +++ b/src/gnome-utils/gnc-menu-extensions.c @@ -313,6 +313,7 @@ gnc_extensions_menu_setup (GtkUIManager *uiMerge ) data.uiMerge = uiMerge; data.group = gtk_action_group_new("MainWindowActionsN"); + gtk_action_group_set_translation_domain(data.group, GETTEXT_PACKAGE); gtk_ui_manager_insert_action_group(uiMerge, data.group, 0); data.merge_id = gtk_ui_manager_new_merge_id(uiMerge); diff --git a/src/gnome-utils/gnc-plugin-menu-additions.c b/src/gnome-utils/gnc-plugin-menu-additions.c index 1cbc7bdcfc..39a027308c 100644 --- a/src/gnome-utils/gnc-plugin-menu-additions.c +++ b/src/gnome-utils/gnc-plugin-menu-additions.c @@ -277,6 +277,7 @@ gnc_plugin_menu_additions_add_to_window (GncPlugin *plugin, per_window.window = window; per_window.ui_manager = window->ui_merge; per_window.group = gtk_action_group_new ("MenuAdditions" ); + gtk_action_group_set_translation_domain (per_window.group, GETTEXT_PACKAGE); per_window.merge_id = gtk_ui_manager_new_merge_id(window->ui_merge); gtk_ui_manager_insert_action_group(window->ui_merge, per_window.group, 0); diff --git a/src/gnome-utils/gnc-plugin-page.c b/src/gnome-utils/gnc-plugin-page.c index 03ffb1ee6c..f6adb7b8a9 100644 --- a/src/gnome-utils/gnc-plugin-page.c +++ b/src/gnome-utils/gnc-plugin-page.c @@ -730,10 +730,13 @@ GtkActionGroup * gnc_plugin_page_create_action_group (GncPluginPage *page, const gchar *group_name) { GncPluginPagePrivate *priv; + GtkActionGroup *group; priv = GNC_PLUGIN_PAGE_GET_PRIVATE(page); - priv->action_group = gtk_action_group_new(group_name); - return priv->action_group; + group = gtk_action_group_new(group_name); + gtk_action_group_set_translation_domain(group, GETTEXT_PACKAGE); + priv->action_group = group; + return group; } /** @} */