Andreas Köhler's patch to re-enable translation of menus and icons.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@11894 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
David Hampton 2005-11-09 23:00:31 +00:00
parent ec8389b6d5
commit 98c07c62f0
6 changed files with 19 additions and 2 deletions

View File

@ -1,3 +1,12 @@
2005-11-09 David Hampton <hampton@employees.org>
* 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 <andi5.py at
gmx.net> patch to re-enable translation of menus and icons.
2005-11-09 Scott Oonk <scott.oonk@gmail.com>
* src/register/register-gnome/gnucash-item-edit.c: This patch

View File

@ -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);

View File

@ -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,

View File

@ -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);

View File

@ -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);

View File

@ -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;
}
/** @} */