[network-manager-openswan] ui: call gtk_builder_set_translation_domain() to ensure UI is translated
- From: Dan Williams <dcbw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openswan] ui: call gtk_builder_set_translation_domain() to ensure UI is translated
- Date: Fri, 19 Aug 2011 20:57:44 +0000 (UTC)
commit c317be353a047cfea0c9500357e426efb404143c
Author: Ozan ÃaÄlayan <ozan pardus org tr>
Date: Fri Aug 19 15:59:50 2011 -0500
ui: call gtk_builder_set_translation_domain() to ensure UI is translated
gtk_builder_set_translation_domain() should be called before
gtk_builder_add_from_file(). This fixes UI messages always in English
problem.
properties/nm-openswan.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/properties/nm-openswan.c b/properties/nm-openswan.c
index b48fa3e..4e3ca0a 100644
--- a/properties/nm-openswan.c
+++ b/properties/nm-openswan.c
@@ -625,6 +625,9 @@ nm_vpn_plugin_ui_widget_interface_new (NMConnection *connection, GError **error)
priv->builder = gtk_builder_new ();
g_assert (priv->builder);
+
+ gtk_builder_set_translation_domain (priv->builder, GETTEXT_PACKAGE);
+
if (gtk_builder_add_from_file (priv->builder, UIDIR "/nm-openswan-dialog.ui", error) == 0) {
g_object_unref (object);
return NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]