Commit 3aa262a1 authored by Felix Riemann's avatar Felix Riemann

[postasa] Set translation domain for GtkBuilder instances

This makes translations work in the GtkBuilder-generated dialogs.
parent 1e6f5f99
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment