# HG changeset patch # User Mark Doliner # Date 1320024022 0 # Node ID f21518a8f3b833dcbadcb2b982eed88673c020d3 # Parent edf3504ca95ab4df89d8fcd13111b3455c4a83e6 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. diff -r edf3504ca95a -r f21518a8f3b8 pidgin/gtkmedia.c --- 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);