[evolution-patches] gtkhtml 43261



Attached patch sets translation domain around bonobo call which
translates .xml labels.
Index: menubar.c
===================================================================
RCS file: /cvs/gnome/gtkhtml/components/html-editor/menubar.c,v
retrieving revision 1.87
diff -u -p -r1.87 menubar.c
--- menubar.c	12 May 2003 20:46:48 -0000	1.87
+++ menubar.c	19 May 2003 15:08:55 -0000
@@ -624,12 +624,18 @@ menubar_setup (BonoboUIComponent  *uic,
 	g_return_if_fail (GTK_IS_HTML (cd->html));
 	g_return_if_fail (BONOBO_IS_UI_COMPONENT (uic));
 
+	gchar *domain;
 
 	/* printf ("xml: %s/%s\n", GTKHTML_DATADIR, "GNOME_GtkHTML_Editor.xml"); */
 
+	domain = g_strdup (textdomain (NULL));
+	textdomain (GNOME_EXPLICIT_TRANSLATION_DOMAIN);
 	bonobo_ui_component_add_verb_list_with_data (uic, editor_verbs, cd);
 	bonobo_ui_util_set_ui (uic, GTKHTML_DATADIR, "GNOME_GtkHTML_Editor.xml", "GNOME_GtkHTML_Editor", NULL);
 
 	spell_create_language_menu (cd);
 	menubar_update_format (cd);
+
+	textdomain (domain);
+	g_free (domain);
 }


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