[network-manager-vpnc] Use Unicode in translatable strings



commit 7ca41fbc661710b3f1f78999dbf4121bd780596f
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Mon Oct 3 23:19:17 2016 +0200

    Use Unicode in translatable strings
    
    See https://developer.gnome.org/hig/stable/typography.html

 auth-dialog/main.c                 |    2 +-
 properties/nm-vpnc-dialog.ui       |    6 +++---
 properties/nm-vpnc-editor-plugin.c |    2 +-
 properties/nm-vpnc-editor.c        |    2 +-
 src/nm-vpnc-service.c              |   18 +++++++++---------
 5 files changed, 15 insertions(+), 15 deletions(-)
---
diff --git a/auth-dialog/main.c b/auth-dialog/main.c
index 2370208..9e73d1b 100644
--- a/auth-dialog/main.c
+++ b/auth-dialog/main.c
@@ -488,7 +488,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-vpnc-dialog.ui b/properties/nm-vpnc-dialog.ui
index e5a2ef6..deb4849 100644
--- a/properties/nm-vpnc-dialog.ui
+++ b/properties/nm-vpnc-dialog.ui
@@ -278,7 +278,7 @@ config: CA-File</property>
         <property name="xscale">0</property>
         <child>
           <object class="GtkButton" id="advanced_button">
-            <property name="label" translatable="yes">Advance_d...</property>
+            <property name="label" translatable="yes">Advance_d…</property>
             <property name="use_action_appearance">False</property>
             <property name="visible">True</property>
             <property name="can_focus">True</property>
@@ -664,7 +664,7 @@ config: DPD idle timeout (our side) 0</property>
                       <object class="GtkSpinButton" id="local_port_spinbutton">
                         <property name="visible">True</property>
                         <property name="can_focus">True</property>
-                        <property name="tooltip_text" translatable="yes">Local ISAKMP port to use (0 means 
random port; 500 is vpnc's default)
+                        <property name="tooltip_text" translatable="yes">Local ISAKMP port to use (0 means 
random port; 500 is vpnc’s default)
 config: Local Port &lt;0-65535&gt;</property>
                         <property name="width_chars">5</property>
                         <property name="text" translatable="yes">0</property>
@@ -739,7 +739,7 @@ config: NAT Traversal Mode &lt;natt/none/force-natt/cisco-udp&gt;</property>
                         <property name="visible">True</property>
                         <property name="can_focus">False</property>
                         <property name="tooltip_text" translatable="yes">Encryption method
-config: nothing for Secure, 'Enable Single DES' for Weak, 'Enable no encryption' for None</property>
+config: nothing for Secure, “Enable Single DES” for Weak, “Enable no encryption” for None</property>
                         <property name="model">model3</property>
                         <child>
                           <object class="GtkCellRendererText" id="renderer3"/>
diff --git a/properties/nm-vpnc-editor-plugin.c b/properties/nm-vpnc-editor-plugin.c
index 55341b0..b49c69c 100644
--- a/properties/nm-vpnc-editor-plugin.c
+++ b/properties/nm-vpnc-editor-plugin.c
@@ -505,7 +505,7 @@ import (NMVpnEditorPlugin *plugin, const char *path, GError **error)
                        char *basename;
 
                        basename = g_path_get_basename (path);
-                       g_warning (_("The VPN settings file '%s' specifies that VPN traffic should be 
tunneled through TCP which is currently not supported in the vpnc software.\n\nThe connection can still be 
created, with TCP tunneling disabled, however it may not work as expected."), basename);
+                       g_warning (_("The VPN settings file “%s” specifies that VPN traffic should be 
tunneled through TCP which is currently not supported in the vpnc software.\n\nThe connection can still be 
created, with TCP tunneling disabled, however it may not work as expected."), basename);
                        g_free (basename);
                }
        }
diff --git a/properties/nm-vpnc-editor.c b/properties/nm-vpnc-editor.c
index 570ecb6..e8d1269 100644
--- a/properties/nm-vpnc-editor.c
+++ b/properties/nm-vpnc-editor.c
@@ -675,7 +675,7 @@ init_plugin_ui (VpncEditor *self,
        gtk_widget_set_sensitive (widget, enabled);
        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 (CA) certificate..."));
+                                          _("Choose a Certificate Authority (CA) certificate…"));
 
        filter = gtk_file_filter_new ();
        gtk_file_filter_add_custom (filter, GTK_FILE_FILTER_FILENAME, cert_filter, NULL, NULL);
diff --git a/src/nm-vpnc-service.c b/src/nm-vpnc-service.c
index ffeb411..364ff7c 100644
--- a/src/nm-vpnc-service.c
+++ b/src/nm-vpnc-service.c
@@ -198,7 +198,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);
                return;
        }
@@ -218,7 +218,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' file path '%s' is not absolute or does not exist"),
+                                    _("property “%s” file path “%s” is not absolute or does not exist"),
                                     key, value);
                }
                break;
@@ -231,7 +231,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 ITEM_TYPE_BOOLEAN:
@@ -241,14 +241,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 %d"),
+                            _("unhandled property “%s” type %d"),
                             key, prop->type);
                break;
        }
@@ -754,7 +754,7 @@ write_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,
-                            _("Config option '%s' invalid or unknown."),
+                            _("Config option “%s” invalid or unknown."),
                             (const char *) key);
                return;
        }
@@ -789,7 +789,7 @@ write_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,
-                                    _("Config option '%s' not an integer."),
+                                    _("Config option “%s” not an integer."),
                                     (const char *) key);
                }
        } else if (type == ITEM_TYPE_IGNORED) {
@@ -1029,7 +1029,7 @@ real_new_secrets (NMVpnServicePlugin *plugin,
                g_set_error (error,
                             NM_VPN_PLUGIN_ERROR,
                             NM_VPN_PLUGIN_ERROR_INVALID_CONNECTION,
-                            _("Could not process the request because the requested info '%s' was not 
provided."),
+                            _("Could not process the request because the requested info “%s” was not 
provided."),
                             priv->pending_auth);
                return FALSE;
        }
@@ -1227,7 +1227,7 @@ main (int argc, char *argv[])
        GError *error = NULL;
 
        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]