[gnome-keyring] Use Unicode in translatable strings



commit a14b92b7abd08c2a676991e8e761b38d77f585ee
Author: Piotr Drąg <piotrdrag gmail com>
Date:   Thu Oct 6 01:49:55 2016 +0200

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

 daemon/dbus/gkd-secret-change.c        |    8 ++++----
 daemon/dbus/gkd-secret-create.c        |    2 +-
 pkcs11/ssh-store/gkm-ssh-private-key.c |    2 +-
 pkcs11/wrap-layer/gkm-wrap-prompt.c    |   32 ++++++++++++++++----------------
 4 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/daemon/dbus/gkd-secret-change.c b/daemon/dbus/gkd-secret-change.c
index 43cf6fa..61986c1 100644
--- a/daemon/dbus/gkd-secret-change.c
+++ b/daemon/dbus/gkd-secret-change.c
@@ -86,11 +86,11 @@ setup_original_prompt (GkdSecretChange *self,
                label = g_strndup (data, n_data);
        g_free (data);
 
-       text = g_strdup_printf (_("Enter the old password for the '%s' keyring"), label);
+       text = g_strdup_printf (_("Enter the old password for the “%s” keyring"), label);
        gcr_prompt_set_message (prompt, text);
        g_free (text);
 
-       text = g_strdup_printf (_("An application wants to change the password for the '%s' keyring. "
+       text = g_strdup_printf (_("An application wants to change the password for the “%s” keyring. "
                                  "Enter the old password for it."), label);
        gcr_prompt_set_description (prompt, text);
        g_free (text);
@@ -122,11 +122,11 @@ setup_password_prompt (GkdSecretChange *self,
                label = g_strndup (data, n_data);
        g_free (data);
 
-       text = g_strdup_printf (_("Choose a new password for the '%s' keyring"), label);
+       text = g_strdup_printf (_("Choose a new password for the “%s” keyring"), label);
        gcr_prompt_set_message (prompt, text);
        g_free (text);
 
-       text = g_strdup_printf (_("An application wants to change the password for the '%s' keyring. "
+       text = g_strdup_printf (_("An application wants to change the password for the “%s” keyring. "
                                  "Choose the new password you want to use for it."), label);
        gcr_prompt_set_description (prompt, text);
        g_free (text);
diff --git a/daemon/dbus/gkd-secret-create.c b/daemon/dbus/gkd-secret-create.c
index cd5587b..428b210 100644
--- a/daemon/dbus/gkd-secret-create.c
+++ b/daemon/dbus/gkd-secret-create.c
@@ -77,7 +77,7 @@ setup_password_prompt (GkdSecretCreate *self)
        if (!gck_attributes_find_string (self->attributes, CKA_LABEL, &label))
                label = g_strdup (_("Unnamed"));
 
-       text = g_strdup_printf (_("An application wants to create a new keyring called '%s'. "
+       text = g_strdup_printf (_("An application wants to create a new keyring called “%s”. "
                                  "Choose the password you want to use for it."), label);
        g_free (label);
 
diff --git a/pkcs11/ssh-store/gkm-ssh-private-key.c b/pkcs11/ssh-store/gkm-ssh-private-key.c
index fe6dc9f..fcb1a09 100644
--- a/pkcs11/ssh-store/gkm-ssh-private-key.c
+++ b/pkcs11/ssh-store/gkm-ssh-private-key.c
@@ -338,7 +338,7 @@ gkm_ssh_private_key_parse (GkmSshPrivateKey *self, const gchar *public_path,
        if (res == GKM_DATA_UNRECOGNIZED) {
                return FALSE;
        } else if (res != GKM_DATA_SUCCESS) {
-               g_set_error_literal (error, GKM_DATA_ERROR, res, _("Couldn't parse public SSH key"));
+               g_set_error_literal (error, GKM_DATA_ERROR, res, _("Couldn’t parse public SSH key"));
                return FALSE;
        }
 
diff --git a/pkcs11/wrap-layer/gkm-wrap-prompt.c b/pkcs11/wrap-layer/gkm-wrap-prompt.c
index 5d0548a..71bc14d 100644
--- a/pkcs11/wrap-layer/gkm-wrap-prompt.c
+++ b/pkcs11/wrap-layer/gkm-wrap-prompt.c
@@ -618,13 +618,13 @@ setup_unlock_keyring_other (GkmWrapPrompt *self,
        text = _("Enter password to unlock");
        gcr_prompt_set_message (prompt, text);
 
-       text = g_markup_printf_escaped (_("An application wants access to the keyring '%s', but it is 
locked"), label);
+       text = g_markup_printf_escaped (_("An application wants access to the keyring “%s”, but it is 
locked"), label);
        gcr_prompt_set_description (prompt, text);
        g_free (text);
 
        choice = NULL;
        if (gkm_wrap_login_is_usable ())
-               choice = _("Automatically unlock this keyring whenever I'm logged in");
+               choice = _("Automatically unlock this keyring whenever I’m logged in");
        gcr_prompt_set_choice_label (prompt, choice);
        gcr_prompt_set_continue_label (prompt, _("Unlock"));
 }
@@ -666,11 +666,11 @@ calc_unlock_object_choice (CK_OBJECT_CLASS klass)
        switch (klass) {
        case CKO_PRIVATE_KEY:
        case CKO_PUBLIC_KEY:
-               return _("Automatically unlock this key whenever I'm logged in");
+               return _("Automatically unlock this key whenever I’m logged in");
        case CKO_CERTIFICATE:
-               return _("Automatically unlock this certificate whenever I'm logged in");
+               return _("Automatically unlock this certificate whenever I’m logged in");
        default:
-               return _("Automatically unlock whenever I'm logged in");
+               return _("Automatically unlock whenever I’m logged in");
        }
 }
 
@@ -681,16 +681,16 @@ calc_unlock_object_secondary (CK_OBJECT_CLASS klass,
        switch (klass) {
        case CKO_PRIVATE_KEY:
                /* TRANSLATORS: The private key is locked */
-               return g_strdup_printf (_("An application wants access to the private key '%s', but it is 
locked"), label);
+               return g_strdup_printf (_("An application wants access to the private key “%s”, but it is 
locked"), label);
        case CKO_CERTIFICATE:
                /* TRANSLATORS: The certificate is locked */
-               return g_strdup_printf (_("An application wants access to the certificate '%s', but it is 
locked"), label);
+               return g_strdup_printf (_("An application wants access to the certificate “%s”, but it is 
locked"), label);
        case CKO_PUBLIC_KEY:
                /* TRANSLATORS: The public key is locked */
-               return g_strdup_printf (_("An application wants access to the public key '%s', but it is 
locked"), label);
+               return g_strdup_printf (_("An application wants access to the public key “%s”, but it is 
locked"), label);
        default:
                /* TRANSLATORS: The object '%s' is locked */
-               return g_strdup_printf (_("An application wants access to '%s', but it is locked"), label);
+               return g_strdup_printf (_("An application wants access to “%s”, but it is locked"), label);
        }
 }
 
@@ -786,13 +786,13 @@ setup_unlock_token (GkmWrapPrompt *self,
        gcr_prompt_set_message (prompt, _("Enter password to unlock the certificate/key storage"));
 
        /* TRANSLATORS: The storage is locked, and needs unlocking before the application can use it. */
-       text = g_strdup_printf (_("An application wants access to the certificate/key storage '%s', but it is 
locked"), label);
+       text = g_strdup_printf (_("An application wants access to the certificate/key storage “%s”, but it is 
locked"), label);
        gcr_prompt_set_description (prompt, text);
        g_free (text);
 
        choice = NULL;
        if (gkm_wrap_login_is_usable ())
-               choice = _("Automatically unlock whenever I'm logged in");
+               choice = _("Automatically unlock whenever I’m logged in");
        gcr_prompt_set_choice_label (prompt, choice);
 
        gcr_prompt_set_continue_label (prompt, _("Unlock"));
@@ -1150,13 +1150,13 @@ setup_init_token (GkmWrapPrompt *self,
        gcr_prompt_set_title (prompt, _("New Password Required"));
        gcr_prompt_set_message (prompt, _("New password required for secure storage"));
 
-       text = g_strdup_printf (_("In order to prepare '%s' for storage of certificates or keys, a password 
is required"), label);
+       text = g_strdup_printf (_("In order to prepare “%s” for storage of certificates or keys, a password 
is required"), label);
        gcr_prompt_set_description (prompt, text);
        g_free (text);
 
        choice = NULL;
        if (gkm_wrap_login_is_usable ())
-               choice = _("Automatically unlock whenever I'm logged in");
+               choice = _("Automatically unlock whenever I’m logged in");
        gcr_prompt_set_choice_label (prompt, choice);
 
        gcr_prompt_set_continue_label (prompt, _("Continue"));
@@ -1268,7 +1268,7 @@ setup_set_token_original (GkmWrapPrompt *self,
        gcr_prompt_set_title (prompt, _("Change Password"));
        gcr_prompt_set_message (prompt, _("Original password for secure storage"));
 
-       text = g_strdup_printf (_("To change the password for '%s', the original password is required"), 
label);
+       text = g_strdup_printf (_("To change the password for “%s”, the original password is required"), 
label);
        gcr_prompt_set_description (prompt, text);
        g_free (text);
 
@@ -1299,13 +1299,13 @@ setup_set_token_password (GkmWrapPrompt *self,
        gcr_prompt_set_title (prompt, _("Change Password"));
        gcr_prompt_set_message (prompt, _("Change password for secure storage"));
 
-       text = g_strdup_printf (_("Type a new password for '%s'"), label);
+       text = g_strdup_printf (_("Type a new password for “%s”"), label);
        gcr_prompt_set_description (prompt, text);
        g_free (text);
 
        choice = NULL;
        if (gkm_wrap_login_is_usable ())
-               choice = _("Automatically unlock whenever I'm logged in");
+               choice = _("Automatically unlock whenever I’m logged in");
 
        gcr_prompt_set_continue_label (prompt, _("Continue"));
        gcr_prompt_set_choice_label (prompt, choice);


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