pidgin.2.x.y: 8fb25fb2: Fix translation of the menu items on the...
markdoliner at pidgin.im
markdoliner at pidgin.im
Sun Oct 30 21:25:42 EDT 2011
----------------------------------------------------------------------
Revision: 8fb25fb2aa5ea501e127ca455dc40ba664998a24
Parent: fc8501d94fef73a8d7e1ad55abd4189670503649
Author: markdoliner at pidgin.im
Date: 10/30/11 21:20:22
Branch: im.pidgin.pidgin.2.x.y
URL: http://d.pidgin.im/viewmtn/revision/info/8fb25fb2aa5ea501e127ca455dc40ba664998a24
Changelog:
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.
Changes against parent fc8501d94fef73a8d7e1ad55abd4189670503649
patched pidgin/gtkmedia.c
-------------- next part --------------
============================================================
--- pidgin/gtkmedia.c 09c75e00d9aa5b679f9eaf66ec1e11f1baaba9cf
+++ pidgin/gtkmedia.c dc80609ada5239f165538b4f1cada0ae2a4029bd
@@ -290,14 +290,14 @@ setup_menubar(PidginMedia *window)
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);
More information about the Commits
mailing list