From e58cb0eb97ad92edcd5aae208d68bf53f55e54e7 Mon Sep 17 00:00:00 2001 From: kidburglar Date: Sat, 16 May 2020 23:52:13 +0200 Subject: [PATCH] Add a better message for the error startTLS-server-certificate-invalid-DNS-ID and add the strings to the other languages --- syncplay/messages_de.py | 1 + syncplay/messages_en.py | 4 ++-- syncplay/messages_es.py | 1 + syncplay/messages_it.py | 1 + syncplay/messages_ru.py | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) diff --git a/syncplay/messages_de.py b/syncplay/messages_de.py index 4d1837f..c3485d2 100755 --- a/syncplay/messages_de.py +++ b/syncplay/messages_de.py @@ -320,6 +320,7 @@ de = { "startTLS-initiated": "Attempting secure connection", "startTLS-secure-connection-ok": "Secure connection established ({})", "startTLS-server-certificate-invalid": 'Secure connection failed. The server uses an invalid security certificate. This communication could be intercepted by a third party. For further details and troubleshooting see here.', + "startTLS-server-certificate-invalid-DNS-ID": "Syncplay does not trust this server because it uses a certificate that is not valid for its hostname.", "startTLS-not-supported-client": "This client does not support TLS", "startTLS-not-supported-server": "This server does not support TLS", diff --git a/syncplay/messages_en.py b/syncplay/messages_en.py index 74974b6..6176f17 100755 --- a/syncplay/messages_en.py +++ b/syncplay/messages_en.py @@ -1,4 +1,4 @@ -# coding:utf8 +startTLS-server-certificate-invalid-DNS-ID# coding:utf8 """English dictionary""" @@ -321,7 +321,7 @@ en = { "startTLS-initiated": "Attempting secure connection", "startTLS-secure-connection-ok": "Secure connection established ({})", "startTLS-server-certificate-invalid": 'Secure connection failed. The server uses an invalid security certificate. This communication could be intercepted by a third party. For further details and troubleshooting see here.', - "startTLS-server-certificate-invalid-DNS-ID": "Secure connection failed. The Subject Alternative Name in certificate doesn't match the server hostname.", + "startTLS-server-certificate-invalid-DNS-ID": "Syncplay does not trust this server because it uses a certificate that is not valid for its hostname.", "startTLS-not-supported-client": "This client does not support TLS", "startTLS-not-supported-server": "This server does not support TLS", diff --git a/syncplay/messages_es.py b/syncplay/messages_es.py index 932f68b..c69401b 100644 --- a/syncplay/messages_es.py +++ b/syncplay/messages_es.py @@ -321,6 +321,7 @@ es = { "startTLS-initiated": "Intentando conexión segura", "startTLS-secure-connection-ok": "Conexión segura establecida ({})", "startTLS-server-certificate-invalid": 'Falló la conexión segura. El servidor utiliza un certificado inválido. Esta comunicación podría ser interceptada por un tercero. Para más detalles y solución de problemas, consulta aquí.', + "startTLS-server-certificate-invalid-DNS-ID": "Syncplay does not trust this server because it uses a certificate that is not valid for its hostname.", # TODO: Translate "startTLS-not-supported-client": "Este cliente no soporta TLS", "startTLS-not-supported-server": "Este servidor no soporta TLS", diff --git a/syncplay/messages_it.py b/syncplay/messages_it.py index df44bb9..5463c5c 100755 --- a/syncplay/messages_it.py +++ b/syncplay/messages_it.py @@ -321,6 +321,7 @@ it = { "startTLS-initiated": "Tentativo di connessione sicura in corso", "startTLS-secure-connection-ok": "Connessione sicura stabilita ({})", "startTLS-server-certificate-invalid": 'Connessione sicura non riuscita. Il certificato di sicurezza di questo server non è valido. La comunicazione potrebbe essere intercettata da una terza parte. Per ulteriori dettagli e informazioni sulla risoluzione del problema, clicca qui.', + "startTLS-server-certificate-invalid-DNS-ID": "Syncplay does not trust this server because it uses a certificate that is not valid for its hostname.", # TODO: Translate "startTLS-not-supported-client": "Questo client non supporta TLS", "startTLS-not-supported-server": "Questo server non supporta TLS", diff --git a/syncplay/messages_ru.py b/syncplay/messages_ru.py index 26aadd1..fa87045 100755 --- a/syncplay/messages_ru.py +++ b/syncplay/messages_ru.py @@ -324,6 +324,7 @@ ru = { "startTLS-initiated": "Attempting secure connection", "startTLS-secure-connection-ok": "Secure connection established ({})", "startTLS-server-certificate-invalid": 'Secure connection failed. The server uses an invalid security certificate. This communication could be intercepted by a third party. For further details and troubleshooting see here.', + "startTLS-server-certificate-invalid-DNS-ID": "Syncplay does not trust this server because it uses a certificate that is not valid for its hostname.", "startTLS-not-supported-client": "This client does not support TLS", "startTLS-not-supported-server": "This server does not support TLS",