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
This commit is contained in:
Piotr Drąg 2016-10-03 14:48:16 +02:00
parent 6fc7734a66
commit 1e1509240e
6 changed files with 14 additions and 14 deletions

View file

@ -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 didnt 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 didnt 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));

View file

@ -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);

View file

@ -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);

View file

@ -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"),
_("Couldnt connect to the %s domain: %s"),
login->domain, krb5_get_error_message (k5, code));
break;
}

View file

@ -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 %ss 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 %ss account?"),
get_real_or_user_name (user));
gtk_dialog_add_buttons (GTK_DIALOG (dialog),

View file

@ -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 isnt 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 cant be changed."));
}
return valid;