[network-manager-libreswan] Use Unicode in translatable strings
- From: Piotr Drąg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-libreswan] Use Unicode in translatable strings
- Date: Mon, 3 Oct 2016 19:53:51 +0000 (UTC)
commit 6f13c0689c2787fc90b4863485dc7704dc79ba9a
Author: Piotr Drąg <piotrdrag gmail com>
Date: Mon Oct 3 21:49:21 2016 +0200
Use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html
auth-dialog/main.c | 2 +-
properties/nm-libreswan-editor-plugin.c | 8 ++++----
src/nm-libreswan-service.c | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index 2d122d3..8ad4825 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -484,7 +484,7 @@ main (int argc, char *argv[])
*/
prompt = get_passwords_required (data, hints, &need_password, &need_group_password);
if (!prompt)
- 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);
/* Exit early if we don't need any passwords */
if (!need_password && !need_group_password)
diff --git a/properties/nm-libreswan-editor-plugin.c b/properties/nm-libreswan-editor-plugin.c
index 8d3b3ff..9970324 100644
--- a/properties/nm-libreswan-editor-plugin.c
+++ b/properties/nm-libreswan-editor-plugin.c
@@ -77,7 +77,7 @@ import_from_file (NMVpnEditorPlugin *self,
if (fd == -1) {
errsv = errno;
g_set_error (error, NMV_EDITOR_PLUGIN_ERROR, 0,
- _("Can't open file '%s': %s"), path, g_strerror (errsv));
+ _("Can’t open file “%s”: %s"), path, g_strerror (errsv));
return NULL;
}
@@ -123,7 +123,7 @@ import_from_file (NMVpnEditorPlugin *self,
if (!has_conn) {
g_set_error (error, NMV_EDITOR_PLUGIN_ERROR, NMV_EDITOR_PLUGIN_ERROR_FILE_NOT_VPN,
- _("Missing \"conn\" section in \"%s\""), path);
+ _("Missing “conn” section in “%s”"), path);
g_object_unref (connection);
return NULL;
}
@@ -146,7 +146,7 @@ export_to_file (NMVpnEditorPlugin *self,
if (fd == -1) {
errsv = errno;
g_set_error (error, NMV_EDITOR_PLUGIN_ERROR, NMV_EDITOR_PLUGIN_ERROR_FAILED,
- _("Can't open file '%s': %s"), path, g_strerror (errsv));
+ _("Can’t open file “%s”: %s"), path, g_strerror (errsv));
return FALSE;
}
@@ -164,7 +164,7 @@ export_to_file (NMVpnEditorPlugin *self,
&local)) {
g_close (fd, NULL);
g_set_error (error, NMV_EDITOR_PLUGIN_ERROR, NMV_EDITOR_PLUGIN_ERROR_FAILED,
- _("Error writing to file '%s': %s"), path, local->message);
+ _("Error writing to file “%s”: %s"), path, local->message);
return FALSE;
}
diff --git a/src/nm-libreswan-service.c b/src/nm-libreswan-service.c
index e3c91f5..7145997 100644
--- a/src/nm-libreswan-service.c
+++ b/src/nm-libreswan-service.c
@@ -1986,7 +1986,7 @@ main (int argc, char *argv[])
const gchar *bus_name = NM_DBUS_SERVICE_LIBRESWAN;
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, 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]