From 5a71b8c4064ec8a1eaebe1badfdfab9b4fb292e6 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 10 Jun 2024 13:38:09 +0100 Subject: [PATCH] Translations for pgp public key --- desktop_client.py | 2 +- translations/ar.json | 3 ++- translations/bn.json | 3 ++- translations/ca.json | 3 ++- translations/cy.json | 3 ++- translations/de.json | 3 ++- translations/el.json | 3 ++- translations/en.json | 3 ++- translations/es.json | 3 ++- translations/fa.json | 3 ++- translations/fr.json | 3 ++- translations/ga.json | 3 ++- translations/he.json | 3 ++- translations/hi.json | 3 ++- translations/it.json | 3 ++- translations/ja.json | 3 ++- translations/ko.json | 3 ++- translations/ku.json | 3 ++- translations/nl.json | 3 ++- translations/oc.json | 3 ++- translations/pl.json | 3 ++- translations/pt.json | 3 ++- translations/ru.json | 3 ++- translations/sw.json | 3 ++- translations/tr.json | 3 ++- translations/uk.json | 3 ++- translations/yi.json | 3 ++- translations/zh.json | 3 ++- webapp_person_options.py | 11 ++++++++--- webapp_profile.py | 5 +++-- 30 files changed, 66 insertions(+), 33 deletions(-) diff --git a/desktop_client.py b/desktop_client.py index 12ff3f43a..5e1e0f4c1 100644 --- a/desktop_client.py +++ b/desktop_client.py @@ -1672,7 +1672,7 @@ def run_desktop_client(base_dir: str, proxy_type: str, http_prefix: str, debug, False, signing_priv_key_pem, system_language) - say_str = indent + 'PGP public key uploaded' + say_str = indent + translate['PGP Public Key'] + ' uploaded' _say_command(say_str, say_str, screenreader, system_language, espeak) pgp_key_upload = True diff --git a/translations/ar.json b/translations/ar.json index ab794fcea..0744f06fa 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -691,5 +691,6 @@ "Message encrypted": "رسالة مشفرة", "Send this direct message, yes or no?": "أرسل هذه الرسالة المباشرة، نعم أم لا؟", "Abandoning new direct message": "التخلي عن الرسالة المباشرة الجديدة", - "Press Enter to continue": "إضغط مفتاح الدخول للاستمرار" + "Press Enter to continue": "إضغط مفتاح الدخول للاستمرار", + "PGP Public Key": "مفتاح PGP العام" } diff --git a/translations/bn.json b/translations/bn.json index 0df7bf429..4c6ce8f0c 100644 --- a/translations/bn.json +++ b/translations/bn.json @@ -691,5 +691,6 @@ "Message encrypted": "বার্তা এনক্রিপ্ট করা হয়েছে", "Send this direct message, yes or no?": "এই সরাসরি বার্তা পাঠান, হ্যাঁ বা না?", "Abandoning new direct message": "নতুন সরাসরি বার্তা পরিত্যাগ", - "Press Enter to continue": "চালিয়ে যেতে এন্টার টিপুন" + "Press Enter to continue": "চালিয়ে যেতে এন্টার টিপুন", + "PGP Public Key": "PGP পাবলিক কী" } diff --git a/translations/ca.json b/translations/ca.json index 1c949d215..cf164fad3 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -691,5 +691,6 @@ "Message encrypted": "Missatge xifrat", "Send this direct message, yes or no?": "Enviar aquest missatge directe, sí o no?", "Abandoning new direct message": "S'abandona el nou missatge directe", - "Press Enter to continue": "Premeu Intro per continuar" + "Press Enter to continue": "Premeu Intro per continuar", + "PGP Public Key": "Clau pública PGP" } diff --git a/translations/cy.json b/translations/cy.json index 99c7f8e26..6dc4b5d69 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -691,5 +691,6 @@ "Message encrypted": "Neges wedi'i hamgryptio", "Send this direct message, yes or no?": "Anfonwch y neges uniongyrchol hon, ie neu na?", "Abandoning new direct message": "Rhoi'r gorau i neges uniongyrchol newydd", - "Press Enter to continue": "Pwyswch Enter i barhau" + "Press Enter to continue": "Pwyswch Enter i barhau", + "PGP Public Key": "Allwedd Gyhoeddus PGP" } diff --git a/translations/de.json b/translations/de.json index ac52cda21..9e476f169 100644 --- a/translations/de.json +++ b/translations/de.json @@ -691,5 +691,6 @@ "Message encrypted": "Nachricht verschlüsselt", "Send this direct message, yes or no?": "Diese Direktnachricht senden, ja oder nein?", "Abandoning new direct message": "Neue Direktnachricht abbrechen", - "Press Enter to continue": "Drücken Sie die Eingabetaste, um fortzufahren" + "Press Enter to continue": "Drücken Sie die Eingabetaste, um fortzufahren", + "PGP Public Key": "Öffentlicher PGP-Schlüssel" } diff --git a/translations/el.json b/translations/el.json index 5513dcd91..eaccc1246 100644 --- a/translations/el.json +++ b/translations/el.json @@ -691,5 +691,6 @@ "Message encrypted": "Το μήνυμα είναι κρυπτογραφημένο", "Send this direct message, yes or no?": "Στείλτε αυτό το άμεσο μήνυμα, ναι ή όχι;", "Abandoning new direct message": "Εγκατάλειψη νέου άμεσου μηνύματος", - "Press Enter to continue": "Πατήστε Enter για να συνεχίσετε" + "Press Enter to continue": "Πατήστε Enter για να συνεχίσετε", + "PGP Public Key": "Δημόσιο κλειδί PGP" } diff --git a/translations/en.json b/translations/en.json index 4931e4d03..59b7e3040 100644 --- a/translations/en.json +++ b/translations/en.json @@ -691,5 +691,6 @@ "Message encrypted": "Message encrypted", "Send this direct message, yes or no?": "Send this direct message, yes or no?", "Abandoning new direct message": "Abandoning new direct message", - "Press Enter to continue": "Press Enter to continue" + "Press Enter to continue": "Press Enter to continue", + "PGP Public Key": "PGP Public Key" } diff --git a/translations/es.json b/translations/es.json index 1174de402..cdbf51913 100644 --- a/translations/es.json +++ b/translations/es.json @@ -691,5 +691,6 @@ "Message encrypted": "Mensaje encriptado", "Send this direct message, yes or no?": "Envía este mensaje directo, ¿sí o no?", "Abandoning new direct message": "Abandonar nuevo mensaje directo", - "Press Enter to continue": "Presione Entrar para continuar" + "Press Enter to continue": "Presione Entrar para continuar", + "PGP Public Key": "Clave pública PGP" } diff --git a/translations/fa.json b/translations/fa.json index e1284adb7..64058ca3a 100644 --- a/translations/fa.json +++ b/translations/fa.json @@ -691,5 +691,6 @@ "Message encrypted": "پیام رمزگذاری شده است", "Send this direct message, yes or no?": "این پیام مستقیم را ارسال کنید، بله یا خیر؟", "Abandoning new direct message": "رها کردن پیام مستقیم جدید", - "Press Enter to continue": "برای ادامه Enter را فشار دهید" + "Press Enter to continue": "برای ادامه Enter را فشار دهید", + "PGP Public Key": "کلید عمومی PGP" } diff --git a/translations/fr.json b/translations/fr.json index c4fbb1c0a..36a1f1cb8 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -691,5 +691,6 @@ "Message encrypted": "Message crypté", "Send this direct message, yes or no?": "Envoyer ce message direct, oui ou non ?", "Abandoning new direct message": "Abandonner un nouveau message direct", - "Press Enter to continue": "Appuyez sur Entrée pour continuer" + "Press Enter to continue": "Appuyez sur Entrée pour continuer", + "PGP Public Key": "Clé publique PGP" } diff --git a/translations/ga.json b/translations/ga.json index 659737391..639f2e3e1 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -691,5 +691,6 @@ "Message encrypted": "Teachtaireacht criptithe", "Send this direct message, yes or no?": "Seol an teachtaireacht dhíreach seo, tá nó níl?", "Abandoning new direct message": "Teachtaireacht dhíreach nua a thréigean", - "Press Enter to continue": "Brúigh Enter chun leanúint ar aghaidh" + "Press Enter to continue": "Brúigh Enter chun leanúint ar aghaidh", + "PGP Public Key": "Eochair Phoiblí PGP" } diff --git a/translations/he.json b/translations/he.json index bc56b3c21..235bfaa03 100644 --- a/translations/he.json +++ b/translations/he.json @@ -691,5 +691,6 @@ "Message encrypted": "הודעה מוצפנת", "Send this direct message, yes or no?": "לשלוח הודעה ישירה זו, כן או לא?", "Abandoning new direct message": "נטישת הודעה ישירה חדשה", - "Press Enter to continue": "לחץ על Enter כדי להמשיך" + "Press Enter to continue": "לחץ על Enter כדי להמשיך", + "PGP Public Key": "מפתח PGP ציבורי" } diff --git a/translations/hi.json b/translations/hi.json index 3c5604d1a..29333a859 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -691,5 +691,6 @@ "Message encrypted": "संदेश एन्क्रिप्ट किया गया", "Send this direct message, yes or no?": "यह सीधा संदेश भेजें, हाँ या नहीं?", "Abandoning new direct message": "नए प्रत्यक्ष संदेश का परित्याग", - "Press Enter to continue": "जारी रखने के लिए Enter दबाएँ" + "Press Enter to continue": "जारी रखने के लिए Enter दबाएँ", + "PGP Public Key": "पीजीपी सार्वजनिक कुंजी" } diff --git a/translations/it.json b/translations/it.json index f7081133e..da4f782b0 100644 --- a/translations/it.json +++ b/translations/it.json @@ -691,5 +691,6 @@ "Message encrypted": "Messaggio crittografato", "Send this direct message, yes or no?": "Invia questo messaggio diretto, sì o no?", "Abandoning new direct message": "Abbandonare il nuovo messaggio diretto", - "Press Enter to continue": "Premere Invio per continuare" + "Press Enter to continue": "Premere Invio per continuare", + "PGP Public Key": "Chiave pubblica PGP" } diff --git a/translations/ja.json b/translations/ja.json index 28635bc78..c300ae11f 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -691,5 +691,6 @@ "Message encrypted": "メッセージは暗号化されています", "Send this direct message, yes or no?": "このダイレクト メッセージを送信します。はい、いいえ?", "Abandoning new direct message": "新しいダイレクトメッセージの放棄", - "Press Enter to continue": "続行するには Enter キーを押してください" + "Press Enter to continue": "続行するには Enter キーを押してください", + "PGP Public Key": "PGP公開鍵" } diff --git a/translations/ko.json b/translations/ko.json index 7f5cb30f3..518808e9d 100644 --- a/translations/ko.json +++ b/translations/ko.json @@ -691,5 +691,6 @@ "Message encrypted": "암호화된 메시지", "Send this direct message, yes or no?": "이 다이렉트 메시지를 보내세요, 예 아니면 아니오?", "Abandoning new direct message": "새 다이렉트 메시지 포기하기", - "Press Enter to continue": "계속하려면 Enter를 누르세요." + "Press Enter to continue": "계속하려면 Enter를 누르세요.", + "PGP Public Key": "PGP 공개 키" } diff --git a/translations/ku.json b/translations/ku.json index 8a145943f..fef7d8831 100644 --- a/translations/ku.json +++ b/translations/ku.json @@ -691,5 +691,6 @@ "Message encrypted": "Peyam şîfre kirin", "Send this direct message, yes or no?": "Vê peyama rasterast bişînin, erê an na?", "Abandoning new direct message": "Rakirina peyama rasterast a nû", - "Press Enter to continue": "Ji bo berdewamkirinê Enter bikirtînin" + "Press Enter to continue": "Ji bo berdewamkirinê Enter bikirtînin", + "PGP Public Key": "Mifteya Giştî ya PGP" } diff --git a/translations/nl.json b/translations/nl.json index 813a7fe44..539d62a28 100644 --- a/translations/nl.json +++ b/translations/nl.json @@ -691,5 +691,6 @@ "Message encrypted": "Bericht versleuteld", "Send this direct message, yes or no?": "Dit directe bericht versturen, ja of nee?", "Abandoning new direct message": "Nieuw privéchat verlaten", - "Press Enter to continue": "Druk op Enter om door te gaan" + "Press Enter to continue": "Druk op Enter om door te gaan", + "PGP Public Key": "PGP publieke sleutel" } diff --git a/translations/oc.json b/translations/oc.json index 142bc1eee..c4e419b75 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -687,5 +687,6 @@ "Message encrypted": "Message encrypted", "Send this direct message, yes or no?": "Send this direct message, yes or no?", "Abandoning new direct message": "Abandoning new direct message", - "Press Enter to continue": "Press Enter to continue" + "Press Enter to continue": "Press Enter to continue", + "PGP Public Key": "PGP Public Key" } diff --git a/translations/pl.json b/translations/pl.json index 78115cdf9..c817efef0 100644 --- a/translations/pl.json +++ b/translations/pl.json @@ -691,5 +691,6 @@ "Message encrypted": "Wiadomość zaszyfrowana", "Send this direct message, yes or no?": "Wysłać tę bezpośrednią wiadomość, tak czy nie?", "Abandoning new direct message": "Porzucenie nowej wiadomości bezpośredniej", - "Press Enter to continue": "Naciśnij Enter, aby kontynuować" + "Press Enter to continue": "Naciśnij Enter, aby kontynuować", + "PGP Public Key": "Klucz publiczny PGP" } diff --git a/translations/pt.json b/translations/pt.json index e75d277d3..03dbc2670 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -691,5 +691,6 @@ "Message encrypted": "Mensagem criptografada", "Send this direct message, yes or no?": "Envie esta mensagem direta, sim ou não?", "Abandoning new direct message": "Abandonando nova mensagem direta", - "Press Enter to continue": "Pressione Enter para continuar" + "Press Enter to continue": "Pressione Enter para continuar", + "PGP Public Key": "Chave pública PGP" } diff --git a/translations/ru.json b/translations/ru.json index e1522871f..812050e8c 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -691,5 +691,6 @@ "Message encrypted": "Сообщение зашифровано", "Send this direct message, yes or no?": "Отправить это прямое сообщение, да или нет?", "Abandoning new direct message": "Отказ от нового прямого сообщения", - "Press Enter to continue": "Нажмите Enter, чтобы продолжить" + "Press Enter to continue": "Нажмите Enter, чтобы продолжить", + "PGP Public Key": "Открытый ключ PGP" } diff --git a/translations/sw.json b/translations/sw.json index 3f3e9a804..1960b4901 100644 --- a/translations/sw.json +++ b/translations/sw.json @@ -691,5 +691,6 @@ "Message encrypted": "Ujumbe umesimbwa kwa njia fiche", "Send this direct message, yes or no?": "Tuma ujumbe huu wa moja kwa moja, ndiyo au hapana?", "Abandoning new direct message": "Kuacha ujumbe mpya wa moja kwa moja", - "Press Enter to continue": "Bonyeza Enter ili kuendelea" + "Press Enter to continue": "Bonyeza Enter ili kuendelea", + "PGP Public Key": "Ufunguo wa Umma wa PGP" } diff --git a/translations/tr.json b/translations/tr.json index af8667111..f19d3c42d 100644 --- a/translations/tr.json +++ b/translations/tr.json @@ -691,5 +691,6 @@ "Message encrypted": "Mesaj şifrelendi", "Send this direct message, yes or no?": "Bu doğrudan mesajı gönder, evet mi hayır mı?", "Abandoning new direct message": "Yeni doğrudan mesajdan vazgeçiliyor", - "Press Enter to continue": "Devam etmek için Enter'a basın" + "Press Enter to continue": "Devam etmek için Enter'a basın", + "PGP Public Key": "PGP Genel Anahtarı" } diff --git a/translations/uk.json b/translations/uk.json index 3105659ca..cd993b19b 100644 --- a/translations/uk.json +++ b/translations/uk.json @@ -691,5 +691,6 @@ "Message encrypted": "Повідомлення зашифровано", "Send this direct message, yes or no?": "Надіслати це пряме повідомлення, так чи ні?", "Abandoning new direct message": "Відмова від нового прямого повідомлення", - "Press Enter to continue": "Натисніть Enter, щоб продовжити" + "Press Enter to continue": "Натисніть Enter, щоб продовжити", + "PGP Public Key": "Відкритий ключ PGP" } diff --git a/translations/yi.json b/translations/yi.json index d70d328fa..05c790952 100644 --- a/translations/yi.json +++ b/translations/yi.json @@ -691,5 +691,6 @@ "Message encrypted": "אָנזאָג ענקריפּטיד", "Send this direct message, yes or no?": "שיקן דעם דירעקט אָנזאָג, יאָ אָדער ניט?", "Abandoning new direct message": "פארלאזן נייַ דירעקט אָנזאָג", - "Press Enter to continue": "דרוק אַרייַן צו פאָרזעצן" + "Press Enter to continue": "דרוק אַרייַן צו פאָרזעצן", + "PGP Public Key": "PGP ציבור שליסל" } diff --git a/translations/zh.json b/translations/zh.json index 6f2f485c0..b75819a98 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -691,5 +691,6 @@ "Message encrypted": "消息已加密", "Send this direct message, yes or no?": "发送此直接消息,是还是否?", "Abandoning new direct message": "放弃新的私信", - "Press Enter to continue": "按 Enter 继续" + "Press Enter to continue": "按 Enter 继续", + "PGP Public Key": "PGP 公钥" } diff --git a/webapp_person_options.py b/webapp_person_options.py index 9920bb9c5..7011e04fc 100644 --- a/webapp_person_options.py +++ b/webapp_person_options.py @@ -452,11 +452,16 @@ def html_person_options(default_timeline: str, '

Enigma: ' + \ remove_html(enigma_pub_key) + '

\n' if pgp_fingerprint: - options_str += '

PGP: ' + \ + options_str += '

' + \ + translate['PGP Fingerprint'] + ': ' + \ remove_html(pgp_fingerprint).replace('\n', '
') + '

\n' if pgp_pub_key: - options_str += '

' + \ - remove_html(pgp_pub_key).replace('\n', '
') + '

\n' + options_str += \ + '
' + \ + translate['PGP Public Key'] + \ + '
' + \ + remove_html(pgp_pub_key).replace('\n', '
') + \ + '
\n' options_str += ' \n' options_str += ' PGP: ' + \ + '

' + translate['PGP Fingerprint'] + ': ' + \ pgp_fingerprint.replace('\n', '
') + '

\n' if pgp_pub_key: donate_section += \ '
' + \ - 'PGP
' + \ + translate['PGP Public Key'] + \ + '
' + \ pgp_pub_key.replace('\n', '
') + \ '
\n' donate_section += ' \n'