Mercurial > pidgin.yaz
changeset 32802:f21518a8f3b8
Fix translation of the menu items on the media window.
Need to call gtk_action_group_set_translation_domain before calling
gtk_action_group_add_actions, otherwise the text doesn't seem to get
translated.
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Mon, 31 Oct 2011 01:20:22 +0000 |
parents | edf3504ca95a |
children | 15e80ced77a2 |
files | pidgin/gtkmedia.c |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/pidgin/gtkmedia.c Mon Oct 24 08:31:16 2011 +0000 +++ b/pidgin/gtkmedia.c Mon Oct 31 01:20:22 2011 +0000 @@ -290,14 +290,14 @@ GtkWidget *menu; action_group = gtk_action_group_new("MediaActions"); +#ifdef ENABLE_NLS + gtk_action_group_set_translation_domain(action_group, + PACKAGE); +#endif gtk_action_group_add_actions(action_group, menu_entries, G_N_ELEMENTS(menu_entries), GTK_WINDOW(window)); -#ifdef ENABLE_NLS - gtk_action_group_set_translation_domain(action_group, - PACKAGE); -#endif window->priv->ui = gtk_ui_manager_new(); gtk_ui_manager_insert_action_group(window->priv->ui, action_group, 0);