diff options
author | Translations <translations@dino.im> | 2020-11-10 14:04:57 +0100 |
---|---|---|
committer | fiaxh <git@lightrise.org> | 2020-11-10 14:04:57 +0100 |
commit | b2c7e9dfff2e00549fc23ad8e531d77daa6c2738 (patch) | |
tree | 416b5c7211e4c26afc3c1e33ecc2c38434301c30 /main/src | |
parent | 1999c97bb925d64cfe7cbc230959ce9a18728081 (diff) | |
download | dino-b2c7e9dfff2e00549fc23ad8e531d77daa6c2738.tar.gz dino-b2c7e9dfff2e00549fc23ad8e531d77daa6c2738.zip |
Make some strings translatable, update translations
Diffstat (limited to 'main/src')
-rw-r--r-- | main/src/ui/manage_accounts/add_account_dialog.vala | 10 | ||||
-rw-r--r-- | main/src/ui/notifications.vala | 4 |
2 files changed, 7 insertions, 7 deletions
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("<b>" + login_jid.domainpart + "</b>"); + string error_desc = _("The server could not prove that it is %s.").printf("<b>" + login_jid.domainpart + "</b>"); 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); |