[network-manager-openconnect] properties: call bindtextdomain() and bind_textdomain_codeset()
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openconnect] properties: call bindtextdomain() and bind_textdomain_codeset()
- Date: Mon, 24 Jun 2013 16:19:38 +0000 (UTC)
commit 8c7ae324a77b4db627cf71bbbeab372e5e196c13
Author: Dan Winship <danw gnome org>
Date: Thu Jun 13 12:07:33 2013 -0300
properties: call bindtextdomain() and bind_textdomain_codeset()
Make sure gettext knows the translations are in UTF-8, or else they'll
get garbled if the user's domain isn't UTF-8.
https://bugzilla.gnome.org/show_bug.cgi?id=702153
properties/Makefile.am | 3 +--
properties/nm-openconnect.c | 3 +++
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/properties/Makefile.am b/properties/Makefile.am
index d0bbf4d..8673889 100644
--- a/properties/Makefile.am
+++ b/properties/Makefile.am
@@ -20,8 +20,7 @@ libnm_openconnect_properties_la_CFLAGS = \
-DUIDIR=\""$(uidir)"\" \
-DG_DISABLE_DEPRECATED \
-DGDK_DISABLE_DEPRECATED \
- -DGNOME_DISABLE_DEPRECATED \
- -DGNOMELOCALEDIR=\"$(datadir)/locale\" \
+ -DLOCALEDIR=\"$(datadir)/locale\" \
-DVERSION=\"$(VERSION)\"
libnm_openconnect_properties_la_LIBADD = \
diff --git a/properties/nm-openconnect.c b/properties/nm-openconnect.c
index 9e6d0e7..3a9f69f 100644
--- a/properties/nm-openconnect.c
+++ b/properties/nm-openconnect.c
@@ -828,6 +828,9 @@ nm_vpn_plugin_ui_factory (GError **error)
if (error)
g_return_val_if_fail (*error == NULL, NULL);
+ bindtextdomain (GETTEXT_PACKAGE, LOCALEDIR);
+ bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
+
return NM_VPN_PLUGIN_UI_INTERFACE (g_object_new (OPENCONNECT_TYPE_PLUGIN_UI, NULL));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]