Commit a14b92b7 authored by Piotr Drąg's avatar Piotr Drąg 😐 Committed by Stef Walter

Use Unicode in translatable strings

See https://developer.gnome.org/hig/stable/typography.htmlSigned-off-by: 's avatarStef 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
parent bf8aa977
......@@ -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);
......
......@@ -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);
......
......@@ -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, _("Couldnt parse public SSH key"));
return FALSE;
}
......
......@@ -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 Im 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 Im logged in");
case CKO_CERTIFICATE:
return _("Automatically unlock this certificate whenever I'm logged in");
return _("Automatically unlock this certificate whenever Im logged in");
default:
return _("Automatically unlock whenever I'm logged in");
return _("Automatically unlock whenever Im 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 Im 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 Im 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 Im logged in");
gcr_prompt_set_continue_label (prompt, _("Continue"));
gcr_prompt_set_choice_label (prompt, choice);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment