[network-manager-openconnect] Use Unicode in translatable strings
- From: Piotr Drąg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-openconnect] Use Unicode in translatable strings
- Date: Mon, 3 Oct 2016 20:11:15 +0000 (UTC)
commit 14d6fac9ca3c8beb921a77e6a01dc7a995987608
Author: Piotr Drąg <piotrdrag gmail com>
Date: Mon Oct 3 22:05:44 2016 +0200
Use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html
auth-dialog/main.c | 6 +++---
properties/auth-helpers.c | 6 +++---
properties/nm-openconnect-dialog.ui | 8 ++++----
src/nm-openconnect-service.c | 10 +++++-----
4 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index a6ebe34..fbee3ed 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -684,7 +684,7 @@ static int nm_process_auth_form (void *cbdata, struct oc_auth_form *form)
static char* get_title(const char *vpn_name)
{
if (vpn_name)
- return g_strdup_printf(_("Connect to VPN '%s'"), vpn_name);
+ return g_strdup_printf(_("Connect to VPN “%s”"), vpn_name);
else
return g_strdup(_("Connect to VPN"));
}
@@ -726,7 +726,7 @@ static gboolean user_validate_cert(cert_data *data)
title = get_title(data->ui_data->vpn_name);
dlg = gtk_message_dialog_new(NULL, 0, GTK_MESSAGE_QUESTION,
GTK_BUTTONS_OK_CANCEL,
- _("Certificate from VPN server \"%s\" failed verification.\n"
+ _("Certificate from VPN server “%s” failed verification.\n"
"Reason: %s\nDo you want to accept it?"),
openconnect_get_hostname(data->ui_data->vpninfo),
data->reason);
@@ -1453,7 +1453,7 @@ static void build_main_dialog(auth_ui_data *ui_data)
gtk_box_pack_start(GTK_BOX(frame_box), ui_data->no_form_label, FALSE, FALSE, 0);
gtk_widget_show(ui_data->no_form_label);
- ui_data->getting_form_label = gtk_label_new(_("Contacting host, please wait..."));
+ ui_data->getting_form_label = gtk_label_new(_("Contacting host, please wait…"));
gtk_widget_set_sensitive(ui_data->getting_form_label, FALSE);
gtk_box_pack_start(GTK_BOX(frame_box), ui_data->getting_form_label, FALSE, FALSE, 0);
diff --git a/properties/auth-helpers.c b/properties/auth-helpers.c
index a5a0248..0eaec1a 100644
--- a/properties/auth-helpers.c
+++ b/properties/auth-helpers.c
@@ -55,7 +55,7 @@ tls_pw_init_auth_widget (GtkBuilder *builder,
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (widget), filter);
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (widget), TRUE);
gtk_file_chooser_button_set_title (GTK_FILE_CHOOSER_BUTTON (widget),
- _("Choose a Certificate Authority certificate..."));
+ _("Choose a Certificate Authority certificate…"));
g_signal_connect (G_OBJECT (widget), "selection-changed", G_CALLBACK (changed_cb), user_data);
if (s_vpn) {
@@ -71,7 +71,7 @@ tls_pw_init_auth_widget (GtkBuilder *builder,
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (widget), filter);
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (widget), TRUE);
gtk_file_chooser_button_set_title (GTK_FILE_CHOOSER_BUTTON (widget),
- _("Choose your personal certificate..."));
+ _("Choose your personal certificate…"));
g_signal_connect (G_OBJECT (widget), "selection-changed", G_CALLBACK (changed_cb), user_data);
if (s_vpn) {
@@ -87,7 +87,7 @@ tls_pw_init_auth_widget (GtkBuilder *builder,
gtk_file_chooser_add_filter (GTK_FILE_CHOOSER (widget), filter);
gtk_file_chooser_set_local_only (GTK_FILE_CHOOSER (widget), TRUE);
gtk_file_chooser_button_set_title (GTK_FILE_CHOOSER_BUTTON (widget),
- _("Choose your private key..."));
+ _("Choose your private key…"));
g_signal_connect (G_OBJECT (widget), "selection-changed", G_CALLBACK (changed_cb), user_data);
if (s_vpn) {
diff --git a/properties/nm-openconnect-dialog.ui b/properties/nm-openconnect-dialog.ui
index c37d718..e49216d 100644
--- a/properties/nm-openconnect-dialog.ui
+++ b/properties/nm-openconnect-dialog.ui
@@ -809,25 +809,25 @@
<col id="3" translatable="no">False</col>
</row>
<row>
- <col id="0" translatable="yes">RSA SecurID - read from ~/.stokenrc</col>
+ <col id="0" translatable="yes">RSA SecurID — read from ~/.stokenrc</col>
<col id="1" translatable="no">stokenrc</col>
<col id="2" translatable="no">stoken</col>
<col id="3" translatable="no">False</col>
</row>
<row>
- <col id="0" translatable="yes">RSA SecurID - manually entered</col>
+ <col id="0" translatable="yes">RSA SecurID — manually entered</col>
<col id="1" translatable="no">manual</col>
<col id="2" translatable="no">stoken</col>
<col id="3" translatable="no">True</col>
</row>
<row>
- <col id="0" translatable="yes">TOTP - manually entered</col>
+ <col id="0" translatable="yes">TOTP — manually entered</col>
<col id="1" translatable="no">totp</col>
<col id="2" translatable="no">totp</col>
<col id="3" translatable="no">True</col>
</row>
<row>
- <col id="0" translatable="yes">HOTP - manually entered</col>
+ <col id="0" translatable="yes">HOTP — manually entered</col>
<col id="1" translatable="no">hotp</col>
<col id="2" translatable="no">hotp</col>
<col id="3" translatable="no">True</col>
diff --git a/src/nm-openconnect-service.c b/src/nm-openconnect-service.c
index b20fdbd..dc82a9f 100644
--- a/src/nm-openconnect-service.c
+++ b/src/nm-openconnect-service.c
@@ -174,7 +174,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' or out of range [%d -> %d]"),
+ _("invalid integer property “%s” or out of range [%d -> %d]"),
key, prop.int_min, prop.int_max);
break;
case G_TYPE_BOOLEAN:
@@ -184,14 +184,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;
}
@@ -204,7 +204,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);
}
}
@@ -688,7 +688,7 @@ int 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, 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]