[network-manager-fortisslvpn] Use Unicode in translatable strings
- From: Piotr Drąg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-fortisslvpn] Use Unicode in translatable strings
- Date: Mon, 3 Oct 2016 19:40:48 +0000 (UTC)
commit 4ecb294d970c9c18edf013b1841d155c3bbbca23
Author: Piotr Drąg <piotrdrag gmail com>
Date: Mon Oct 3 21:31:36 2016 +0200
Use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html
auth-dialog/main.c | 2 +-
properties/nm-fortisslvpn-dialog.ui | 2 +-
src/nm-fortisslvpn-service.c | 16 ++++++++--------
3 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index 0eff70f..1f8372e 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -141,7 +141,7 @@ get_secrets (const char *vpn_uuid,
/* Otherwise, we have no saved password, or the password flags indicated
* that the password should never be saved.
*/
- prompt = g_strdup_printf (_("You need to authenticate to access the Virtual Private Network '%s'."),
vpn_name);
+ prompt = g_strdup_printf (_("You need to authenticate to access the Virtual Private Network “%s”."),
vpn_name);
if (external_ui_mode) {
GKeyFile *keyfile;
diff --git a/properties/nm-fortisslvpn-dialog.ui b/properties/nm-fortisslvpn-dialog.ui
index 59101b2..fb207f8 100644
--- a/properties/nm-fortisslvpn-dialog.ui
+++ b/properties/nm-fortisslvpn-dialog.ui
@@ -437,7 +437,7 @@ config: user <name></property>
<object class="GtkLabel" id="label6">
<property name="visible">True</property>
<property name="can_focus">False</property>
- <property name="label" translatable="yes">A_dvanced...</property>
+ <property name="label" translatable="yes">A_dvanced…</property>
<property name="use_underline">True</property>
</object>
<packing>
diff --git a/src/nm-fortisslvpn-service.c b/src/nm-fortisslvpn-service.c
index 5b95b2c..e2eb5eb 100644
--- a/src/nm-fortisslvpn-service.c
+++ b/src/nm-fortisslvpn-service.c
@@ -205,7 +205,7 @@ validate_one_property (const char *key, const char *value, gpointer user_data)
g_set_error (info->error,
NM_VPN_PLUGIN_ERROR,
NM_VPN_PLUGIN_ERROR_BAD_ARGUMENTS,
- _("invalid gateway '%s'"),
+ _("invalid gateway “%s”"),
value);
return;
} else if ( !strcmp (prop.name, NM_FORTISSLVPN_KEY_CA)
@@ -213,7 +213,7 @@ validate_one_property (const char *key, const char *value, gpointer user_data)
g_set_error (info->error,
NM_VPN_PLUGIN_ERROR,
NM_VPN_PLUGIN_ERROR_BAD_ARGUMENTS,
- _("invalid certificate authority '%s'"),
+ _("invalid certificate authority “%s”"),
value);
return;
}
@@ -227,7 +227,7 @@ validate_one_property (const char *key, const char *value, gpointer user_data)
g_set_error (info->error,
NM_VPN_PLUGIN_ERROR,
NM_VPN_PLUGIN_ERROR_BAD_ARGUMENTS,
- _("invalid integer property '%s'"),
+ _("invalid integer property “%s”"),
key);
break;
case G_TYPE_BOOLEAN:
@@ -237,14 +237,14 @@ validate_one_property (const char *key, const char *value, gpointer user_data)
g_set_error (info->error,
NM_VPN_PLUGIN_ERROR,
NM_VPN_PLUGIN_ERROR_BAD_ARGUMENTS,
- _("invalid boolean property '%s' (not yes or no)"),
+ _("invalid boolean property “%s” (not yes or no)"),
key);
break;
default:
g_set_error (info->error,
NM_VPN_PLUGIN_ERROR,
NM_VPN_PLUGIN_ERROR_BAD_ARGUMENTS,
- _("unhandled property '%s' type %s"),
+ _("unhandled property “%s” type %s"),
key, g_type_name (prop.type));
break;
}
@@ -255,7 +255,7 @@ validate_one_property (const char *key, const char *value, gpointer user_data)
g_set_error (info->error,
NM_VPN_PLUGIN_ERROR,
NM_VPN_PLUGIN_ERROR_BAD_ARGUMENTS,
- _("property '%s' invalid or not supported"),
+ _("property “%s” invalid or not supported"),
key);
}
}
@@ -292,7 +292,7 @@ validate_properties (NMSettingVpn *s_vpn, GError **error)
g_set_error (error,
NM_VPN_PLUGIN_ERROR,
NM_VPN_PLUGIN_ERROR_BAD_ARGUMENTS,
- _("Missing required option '%s'."),
+ _("Missing required option “%s”."),
prop.name);
return FALSE;
}
@@ -796,7 +796,7 @@ main (int argc, char *argv[])
char sbuf[30];
GOptionEntry options[] = {
- { "persist", 0, 0, G_OPTION_ARG_NONE, &persist, N_("Don't quit when VPN connection
terminates"), NULL },
+ { "persist", 0, 0, G_OPTION_ARG_NONE, &persist, N_("Don’t quit when VPN connection
terminates"), NULL },
{ "debug", 0, 0, G_OPTION_ARG_NONE, &gl.debug, N_("Enable verbose debug logging (may expose
passwords)"), NULL },
{ "bus-name", 0, 0, G_OPTION_ARG_STRING, &bus_name_free, N_("D-Bus name to use for this
instance"), NULL },
{NULL}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]