From 22b3eeb9c94b9265a9f2c5821271f90f9ad4037e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Bellegarde?= Date: Sun, 3 Sep 2023 14:17:04 +0200 Subject: [PATCH] client: Simpler notification messages Fix #1015 --- .../application/application-controller.vala | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/client/application/application-controller.vala b/src/client/application/application-controller.vala index 82cf8dad..1e682d6c 100644 --- a/src/client/application/application-controller.vala +++ b/src/client/application/application-controller.vala @@ -1486,11 +1486,8 @@ internal class Application.Controller : private void on_sent(Geary.Smtp.ClientService service, Geary.Email sent) { - /// Translators: The label for an in-app notification. The - /// string substitution is a list of recipients of the email. - string message = _( - "Email sent to %s" - ).printf(Util.Email.to_short_recipient_display(sent)); + /// Translators: The label for an in-app notification. + string message = _("Email sent"); Components.InAppNotification notification = new Components.InAppNotification( message, application.config.brief_notification_duration @@ -2555,12 +2552,8 @@ private class Application.SaveComposerCommand : ComposerCommand { public override async void execute(GLib.Cancellable? cancellable) throws GLib.Error { - Geary.ComposedEmail email = yield this.composer.to_composed_email(); - /// Translators: The label for an in-app notification. The - /// string substitution is a list of recipients of the email. - this.executed_label = _( - "Email to %s saved" - ).printf(Util.Email.to_short_recipient_display(email)); + /// Translators: The label for an in-app notification. + this.executed_label = _("Email saved as draft"); this.destroy_timer.start(); } @@ -2613,12 +2606,9 @@ private class Application.DiscardComposerCommand : ComposerCommand { public override async void execute(GLib.Cancellable? cancellable) throws GLib.Error { - Geary.ComposedEmail email = yield this.composer.to_composed_email(); /// Translators: The label for an in-app notification. The /// string substitution is a list of recipients of the email. - this.executed_label = _( - "Email to %s discarded" - ).printf(Util.Email.to_short_recipient_display(email)); + this.executed_label = _("Email discarded"); this.destroy_timer.start(); }