[gnome-control-center] user-accounts: use Unicode in translatable strings
- From: Piotr Drąg <piotrdrag src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] user-accounts: use Unicode in translatable strings
- Date: Mon, 3 Oct 2016 13:22:23 +0000 (UTC)
commit 1e1509240ed5f38686a504be1dbda2969a062fc7
Author: Piotr Drąg <piotrdrag gmail com>
Date: Mon Oct 3 14:48:16 2016 +0200
user-accounts: use Unicode in translatable strings
See https://developer.gnome.org/hig/stable/typography.html
https://bugzilla.gnome.org/show_bug.cgi?id=772199
panels/user-accounts/um-account-dialog.c | 4 ++--
panels/user-accounts/um-fingerprint-dialog.c | 8 ++++----
panels/user-accounts/um-history-dialog.c | 4 ++--
panels/user-accounts/um-realm-manager.c | 2 +-
panels/user-accounts/um-user-panel.c | 4 ++--
panels/user-accounts/um-utils.c | 6 +++---
6 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/panels/user-accounts/um-account-dialog.c b/panels/user-accounts/um-account-dialog.c
index c0dcf1b..8a32915 100644
--- a/panels/user-accounts/um-account-dialog.c
+++ b/panels/user-accounts/um-account-dialog.c
@@ -1023,14 +1023,14 @@ on_realm_login (GObject *source,
/* A problem with the user's login name or password */
} else if (g_error_matches (error, UM_REALM_ERROR, UM_REALM_ERROR_BAD_LOGIN)) {
g_debug ("Problem with the user's login: %s", error->message);
- message = _("That login name didn't work.\nPlease try again.");
+ message = _("That login name didn’t work.\nPlease try again.");
gtk_label_set_text (GTK_LABEL (self->enterprise_hint), message);
finish_action (self);
gtk_widget_grab_focus (GTK_WIDGET (self->enterprise_login));
} else if (g_error_matches (error, UM_REALM_ERROR, UM_REALM_ERROR_BAD_PASSWORD)) {
g_debug ("Problem with the user's password: %s", error->message);
- message = _("That login password didn't work.\nPlease try again.");
+ message = _("That login password didn’t work.\nPlease try again.");
gtk_label_set_text (GTK_LABEL (self->enterprise_hint), message);
finish_action (self);
gtk_widget_grab_focus (GTK_WIDGET (self->enterprise_password));
diff --git a/panels/user-accounts/um-fingerprint-dialog.c b/panels/user-accounts/um-fingerprint-dialog.c
index d5c39c8..3aa78bb 100644
--- a/panels/user-accounts/um-fingerprint-dialog.c
+++ b/panels/user-accounts/um-fingerprint-dialog.c
@@ -502,7 +502,7 @@ assistant_prepare (GtkAssistant *ass, GtkWidget *page, EnrollData *data)
/* translators:
* The variable is the name of the device, for example:
* "Could you not access "Digital Persona U.are.U 4000/4000B" device */
- msg = g_strdup_printf (_("Could not access '%s' device"), data->name);
+ msg = g_strdup_printf (_("Could not access “%s” device"), data->name);
d = get_error_dialog (msg, error->message, GTK_WINDOW (data->ass));
g_error_free (error);
gtk_dialog_run (GTK_DIALOG (d));
@@ -544,7 +544,7 @@ assistant_prepare (GtkAssistant *ass, GtkWidget *page, EnrollData *data)
/* translators:
* The variable is the name of the device, for example:
* "Could you not access "Digital Persona U.are.U 4000/4000B" device */
- msg = g_strdup_printf (_("Could not access '%s' device"), data->name);
+ msg = g_strdup_printf (_("Could not access “%s” device"), data->name);
d = get_error_dialog (msg, "net.reactivated.Fprint.Error.Internal", GTK_WINDOW
(data->ass));
gtk_dialog_run (GTK_DIALOG (d));
gtk_widget_destroy (d);
@@ -585,7 +585,7 @@ assistant_prepare (GtkAssistant *ass, GtkWidget *page, EnrollData *data)
/* translators:
* The variable is the name of the device, for example:
* "Could you not access "Digital Persona U.are.U 4000/4000B" device */
- msg = g_strdup_printf (_("Could not start finger capture on '%s' device"),
data->name);
+ msg = g_strdup_printf (_("Could not start finger capture on “%s” device"),
data->name);
d = get_error_dialog (msg, error->message, GTK_WINDOW (data->ass));
g_error_free (error);
gtk_dialog_run (GTK_DIALOG (d));
@@ -718,7 +718,7 @@ enroll_fingerprints (GtkWindow *parent,
* "To enable fingerprint login, you need to save one of your fingerprints, using the
* 'Digital Persona U.are.U 4000/4000B' device."
*/
- msg = g_strdup_printf (_("To enable fingerprint login, you need to save one of your fingerprints,
using the '%s' device."),
+ msg = g_strdup_printf (_("To enable fingerprint login, you need to save one of your fingerprints,
using the “%s” device."),
data->name);
gtk_label_set_text (GTK_LABEL (WID("intro-label")), msg);
g_free (msg);
diff --git a/panels/user-accounts/um-history-dialog.c b/panels/user-accounts/um-history-dialog.c
index 7c5f45b..898852b 100644
--- a/panels/user-accounts/um-history-dialog.c
+++ b/panels/user-accounts/um-history-dialog.c
@@ -90,7 +90,7 @@ show_week_label (UmHistoryDialog *um)
/* Translators: This indicates a week label on a login history.
The first %s is the first day of a week, and the second %s the last day. */
- label = g_strdup_printf(C_("login history week label", "%s - %s"), from, to);
+ label = g_strdup_printf(C_("login history week label", "%s — %s"), from, to);
g_date_time_unref (date);
g_free (from);
@@ -296,7 +296,7 @@ update_dialog_title (UmHistoryDialog *um)
/* Translators: This is the title of the "Account Activity" dialog.
The %s is the user real name. */
- title = g_strdup_printf (_("%s - Account Activity"),
+ title = g_strdup_printf (_("%s — Account Activity"),
act_user_get_real_name (um->user));
gtk_window_set_title (GTK_WINDOW (um->dialog), title);
diff --git a/panels/user-accounts/um-realm-manager.c b/panels/user-accounts/um-realm-manager.c
index 8a0a0e6..2639148 100644
--- a/panels/user-accounts/um-realm-manager.c
+++ b/panels/user-accounts/um-realm-manager.c
@@ -831,7 +831,7 @@ kinit_thread_func (GSimpleAsyncResult *async,
break;
default:
g_simple_async_result_set_error (async, UM_REALM_ERROR, UM_REALM_ERROR_GENERIC,
- _("Couldn't connect to the %s domain: %s"),
+ _("Couldn’t connect to the %s domain: %s"),
login->domain, krb5_get_error_message (k5, code));
break;
}
diff --git a/panels/user-accounts/um-user-panel.c b/panels/user-accounts/um-user-panel.c
index 4f11a0a..e7eebdd 100644
--- a/panels/user-accounts/um-user-panel.c
+++ b/panels/user-accounts/um-user-panel.c
@@ -693,7 +693,7 @@ delete_user (GtkButton *button, CcUserPanel *self)
0,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_NONE,
- _("Do you want to keep %s's files?"),
+ _("Do you want to keep %s’s files?"),
get_real_or_user_name (user));
gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
@@ -715,7 +715,7 @@ delete_user (GtkButton *button, CcUserPanel *self)
0,
GTK_MESSAGE_QUESTION,
GTK_BUTTONS_NONE,
- _("Are you sure you want to revoke remotely managed %s's
account?"),
+ _("Are you sure you want to revoke remotely managed %s’s
account?"),
get_real_or_user_name (user));
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
diff --git a/panels/user-accounts/um-utils.c b/panels/user-accounts/um-utils.c
index dcb09f1..94c940a 100644
--- a/panels/user-accounts/um-utils.c
+++ b/panels/user-accounts/um-utils.c
@@ -560,20 +560,20 @@ is_valid_username (const gchar *username, gchar **tip)
if (!empty && (in_use || too_long || !valid)) {
if (in_use) {
- *tip = g_strdup (_("Sorry, that user name isn't available. Please try another."));
+ *tip = g_strdup (_("Sorry, that user name isn’t available. Please try another."));
}
else if (too_long) {
*tip = g_strdup_printf (_("The username is too long."));
}
else if (username[0] == '-') {
- *tip = g_strdup (_("The username cannot start with a '-'."));
+ *tip = g_strdup (_("The username cannot start with a “-”."));
}
else {
*tip = g_strdup (_("The username should only consist of upper and lower case letters
from a-z, digits and the following characters: . - _"));
}
}
else {
- *tip = g_strdup (_("This will be used to name your home folder and can't be changed."));
+ *tip = g_strdup (_("This will be used to name your home folder and can’t be changed."));
}
return valid;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]