[gcr] Use Unicode in translatable strings



commit 33db643618aefe3545fb26347d7059fe1e197bec
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Thu Oct 6 04:00:57 2016 +0200

    Use Unicode in translatable strings
    
    See https://developer.gnome.org/hig/stable/typography.html
    
    Signed-off-by: Stef Walter <stefw gnome org>
     * Retained use of ASCII strings for command-line only cases in C locale.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=772492

 gck/gck-module.c                |    2 +-
 gck/gck-modules.c               |    2 +-
 gck/gck-uri.c                   |    2 +-
 gcr/gcr-subject-public-key.c    |    4 ++--
 gcr/gcr-trust.c                 |    2 +-
 ui/gcr-certificate-renderer.c   |    2 +-
 ui/gcr-failure-renderer.c       |    2 +-
 ui/gcr-unlock-options-widget.ui |    2 +-
 ui/gcr-unlock-renderer.c        |    2 +-
 9 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/gck/gck-module.c b/gck/gck-module.c
index 71c2832..2c63bd6 100644
--- a/gck/gck-module.c
+++ b/gck/gck-module.c
@@ -355,7 +355,7 @@ perform_initialize (Initialize *args)
        if (rv != CKR_OK) {
                p11_kit_module_release (funcs);
                g_set_error (&args->error, GCK_ERROR, rv,
-                            _("Couldn't initialize PKCS#11 module: %s"),
+                            _("Couldn’t initialize PKCS#11 module: %s"),
                             gck_message_from_rv (rv));
                g_object_unref (result);
                return rv;
diff --git a/gck/gck-modules.c b/gck/gck-modules.c
index 9b59ba8..57530ab 100644
--- a/gck/gck-modules.c
+++ b/gck/gck-modules.c
@@ -59,7 +59,7 @@ perform_initialize_registered (InitializeRegistered *args)
        modules = p11_kit_modules_load_and_initialize (0);
        if (modules == NULL) {
                g_set_error (&args->error, GCK_ERROR, (int)CKR_GCK_MODULE_PROBLEM,
-                            _("Couldn't initialize registered PKCS#11 modules: %s"), p11_kit_message ());
+                            _("Couldn’t initialize registered PKCS#11 modules: %s"), p11_kit_message ());
                return CKR_GCK_MODULE_PROBLEM;
        }
 
diff --git a/gck/gck-uri.c b/gck/gck-uri.c
index 29caeba..b985114 100644
--- a/gck/gck-uri.c
+++ b/gck/gck-uri.c
@@ -225,7 +225,7 @@ gck_uri_parse (const gchar *string, GckUriFlags flags, GError **error)
                        break;
                case P11_KIT_URI_BAD_SCHEME:
                        g_set_error_literal (error, GCK_URI_ERROR, GCK_URI_BAD_SCHEME,
-                                            _("The URI does not have the 'pkcs11' scheme."));
+                                            _("The URI does not have the “pkcs11” scheme."));
                        break;
                case P11_KIT_URI_BAD_SYNTAX:
                        g_set_error_literal (error, GCK_URI_ERROR, GCK_URI_BAD_SYNTAX,
diff --git a/gcr/gcr-subject-public-key.c b/gcr/gcr-subject-public-key.c
index c8f772c..0335dc0 100644
--- a/gcr/gcr-subject-public-key.c
+++ b/gcr/gcr-subject-public-key.c
@@ -488,7 +488,7 @@ _gcr_subject_public_key_load (GckObject *key,
        asn = _gcr_subject_public_key_for_attributes (attributes);
        if (asn == NULL) {
                g_set_error_literal (error, GCK_ERROR, CKR_TEMPLATE_INCONSISTENT,
-                                    _("Couldn't build public key"));
+                                    _("Couldn’t build public key"));
        }
 
        gck_attributes_unref (attributes);
@@ -574,7 +574,7 @@ _gcr_subject_public_key_load_finish (GAsyncResult *result,
        asn = _gcr_subject_public_key_for_attributes (attributes);
        if (asn == NULL) {
                g_set_error_literal (error, GCK_ERROR, CKR_TEMPLATE_INCONSISTENT,
-                                    _("Couldn't build public key"));
+                                    _("Couldn’t build public key"));
        }
 
        gck_attributes_unref (attributes);
diff --git a/gcr/gcr-trust.c b/gcr/gcr-trust.c
index 71f5e22..4c20c7d 100644
--- a/gcr/gcr-trust.c
+++ b/gcr/gcr-trust.c
@@ -361,7 +361,7 @@ perform_add_pinned_certificate (GckAttributes *search,
                             /* Translators: A pinned certificate is an exception which
                                trusts a given certificate explicitly for a purpose and
                                communication with a certain peer. */
-                            _("Couldn't find a place to store the pinned certificate"));
+                            _("Couldn’t find a place to store the pinned certificate"));
                ret = FALSE;
        } else {
                session = gck_slot_open_session (slot, CKF_RW_SESSION, NULL, &lerr);
diff --git a/ui/gcr-certificate-renderer.c b/ui/gcr-certificate-renderer.c
index cea0f0e..efd5911 100644
--- a/ui/gcr-certificate-renderer.c
+++ b/ui/gcr-certificate-renderer.c
@@ -284,7 +284,7 @@ on_export_completed (GObject *source, GAsyncResult *result, gpointer user_data)
                        dialog = gtk_message_dialog_new_with_markup (parent,
                                  GTK_DIALOG_DESTROY_WITH_PARENT, GTK_MESSAGE_ERROR,
                                  GTK_BUTTONS_OK, "<big>%s</big>\n\n%s",
-                                 _("Couldn't export the certificate."),
+                                 _("Couldn’t export the certificate."),
                                  error->message);
                        gtk_widget_show (dialog);
                        g_signal_connect (dialog, "delete-event",
diff --git a/ui/gcr-failure-renderer.c b/ui/gcr-failure-renderer.c
index 3ce049d..30b7ef7 100644
--- a/ui/gcr-failure-renderer.c
+++ b/ui/gcr-failure-renderer.c
@@ -156,7 +156,7 @@ gcr_failure_renderer_render (GcrRenderer *renderer,
        _gcr_display_view_append_title (view, renderer, self->pv->label);
 
        if (self->pv->label)
-               display = g_strdup_printf (_("Could not display '%s'"), self->pv->label);
+               display = g_strdup_printf (_("Could not display “%s”"), self->pv->label);
        else
                display = g_strdup (_("Could not display file"));
        _gcr_display_view_append_content (view, renderer, display, NULL);
diff --git a/ui/gcr-unlock-options-widget.ui b/ui/gcr-unlock-options-widget.ui
index ef59144..d8e786e 100644
--- a/ui/gcr-unlock-options-widget.ui
+++ b/ui/gcr-unlock-options-widget.ui
@@ -13,7 +13,7 @@
     <property name="spacing">6</property>
     <child>
       <object class="GtkRadioButton" id="lock_always_choice">
-        <property name="label" translatable="yes">Automatically unlock this keyring whenever I'm logged 
in</property>
+        <property name="label" translatable="yes">Automatically unlock this keyring whenever I’m logged 
in</property>
         <property name="visible">True</property>
         <property name="can_focus">True</property>
         <property name="receives_default">False</property>
diff --git a/ui/gcr-unlock-renderer.c b/ui/gcr-unlock-renderer.c
index ac9d476..aa9dbdc 100644
--- a/ui/gcr-unlock-renderer.c
+++ b/ui/gcr-unlock-renderer.c
@@ -271,7 +271,7 @@ gcr_unlock_renderer_render (GcrRenderer *renderer,
                g_free (display);
 
                if (self->pv->label)
-                       display = g_strdup_printf (_("The contents of '%s' are locked. In order to view the 
contents, enter the correct password."),
+                       display = g_strdup_printf (_("The contents of “%s” are locked. In order to view the 
contents, enter the correct password."),
                                                   self->pv->label);
                else
                        display = g_strdup (_("The contents are locked. In order to view the contents, enter 
the correct password."));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]