[Spice-devel] [spice-gtk 3/3] spicy: Enable menu translations
Christophe Fergeau
cfergeau at redhat.com
Tue Jun 16 05:34:25 PDT 2015
gtk_action_group_set_translation_domain() needs to be called if we want
spicy menus to be translated.
---
src/spicy.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/spicy.c b/src/spicy.c
index 0fae4f6..54280f0 100644
--- a/src/spicy.c
+++ b/src/spicy.c
@@ -888,6 +888,7 @@ static SpiceWindow *create_spice_window(spice_connection *conn, SpiceChannel *ch
/* menu + toolbar */
win->ui = gtk_ui_manager_new();
win->ag = gtk_action_group_new("MenuActions");
+ gtk_action_group_set_translation_domain(win->ag, GETTEXT_PACKAGE);
gtk_action_group_add_actions(win->ag, entries, G_N_ELEMENTS(entries), win);
gtk_action_group_add_toggle_actions(win->ag, tentries,
G_N_ELEMENTS(tentries), win);
--
2.4.3
More information about the Spice-devel
mailing list