[eog-plugins] [postasa] Set translation domain for GtkBuilder instances



commit 3aa262a14e6c75d338d7bb2565873c4180121928
Author: Felix Riemann <friemann gnome org>
Date:   Mon Feb 15 18:57:17 2010 +0100

    [postasa] Set translation domain for GtkBuilder instances
    
    This makes translations work in the GtkBuilder-generated dialogs.

 plugins/postasa/eog-postasa-plugin.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/postasa/eog-postasa-plugin.c b/plugins/postasa/eog-postasa-plugin.c
index 3f0e2bd..948530c 100644
--- a/plugins/postasa/eog-postasa-plugin.c
+++ b/plugins/postasa/eog-postasa-plugin.c
@@ -195,6 +195,7 @@ uploads_get_dialog (EogPostasaPlugin *plugin)
 
 	if (plugin->priv->uploads_window == NULL) {
 		builder = gtk_builder_new ();
+		gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE);
 		gtk_builder_add_from_file (builder, GTKBUILDER_UPLOAD_FILE, &error);
 		if (error != NULL) {
 			g_warning ("Couldn't load Postasa uploads UI file:%d:%s", error->code, error->message);
@@ -648,6 +649,7 @@ login_get_dialog (EogPostasaPlugin *plugin)
 
 	if (plugin->priv->login_dialog == NULL) {
 		builder = gtk_builder_new ();
+		gtk_builder_set_translation_domain (builder, GETTEXT_PACKAGE);
 		gtk_builder_add_from_file (builder, GTKBUILDER_CONFIG_FILE, &error);
 		if (error != NULL) {
 			g_warning ("Couldn't load Postasa configuration UI file:%d:%s", error->code, error->message);



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