[spice-gtk 3/3] spicy: Enable menu translations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/spice-devel




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]