From b2c7e9dfff2e00549fc23ad8e531d77daa6c2738 Mon Sep 17 00:00:00 2001 From: Translations Date: Tue, 10 Nov 2020 14:04:57 +0100 Subject: Make some strings translatable, update translations --- main/src/ui/manage_accounts/add_account_dialog.vala | 10 +++++----- main/src/ui/notifications.vala | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'main/src/ui') diff --git a/main/src/ui/manage_accounts/add_account_dialog.vala b/main/src/ui/manage_accounts/add_account_dialog.vala index c715bb23..dc3b6678 100644 --- a/main/src/ui/manage_accounts/add_account_dialog.vala +++ b/main/src/ui/manage_accounts/add_account_dialog.vala @@ -242,15 +242,15 @@ public class AddAccountDialog : Gtk.Dialog { } else { jid_entry.sensitive = true; if (server_status.error_flags != null) { - string error_desc = "The server could not prove that it is %s.".printf("" + login_jid.domainpart + ""); + string error_desc = _("The server could not prove that it is %s.").printf("" + login_jid.domainpart + ""); if (TlsCertificateFlags.UNKNOWN_CA in server_status.error_flags) { - error_desc += " " + "Its security certificate is not trusted by your computer's operating system."; + error_desc += " " + _("Its security certificate is not trusted by your operating system."); } else if (TlsCertificateFlags.BAD_IDENTITY in server_status.error_flags) { - error_desc += " " + "Its security certificate is issued to another domain."; + error_desc += " " + _("Its security certificate is issued to another domain."); } else if (TlsCertificateFlags.NOT_ACTIVATED in server_status.error_flags) { - error_desc += " " + "Its security certificate will only become valid in the future."; + error_desc += " " + _("Its security certificate will only become valid in the future."); } else if (TlsCertificateFlags.EXPIRED in server_status.error_flags) { - error_desc += " " + "Its security certificate is expired."; + error_desc += " " + _("Its security certificate is expired."); } sign_in_tls_label.label = error_desc; show_tls_error(); diff --git a/main/src/ui/notifications.vala b/main/src/ui/notifications.vala index 396a88ab..c68ab0ff 100644 --- a/main/src/ui/notifications.vala +++ b/main/src/ui/notifications.vala @@ -112,10 +112,10 @@ public class Notifications : Object { Notification notification = new Notification(_("Could not connect to %s").printf(account.bare_jid.domainpart)); switch (error.source) { case ConnectionManager.ConnectionError.Source.SASL: - notification.set_body("Wrong password"); + notification.set_body(_("Wrong password")); break; case ConnectionManager.ConnectionError.Source.TLS: - notification.set_body("Invalid TLS certificate"); + notification.set_body(_("Invalid TLS certificate")); break; } GLib.Application.get_default().send_notification(account.id.to_string() + "-connection-error", notification); -- cgit v1.2.3-70-g09d2