From ce96f25c95b7860ade45aff8810663819a08f816 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20B=C5=99ou=C5=A1ek?= <brousek@ics.muni.cz>
Date: Wed, 19 Oct 2022 23:18:27 +0200
Subject: [PATCH] fix: improve wording of TOTP and WebAuthn

use more user friendly terms verification codes and security key
---
 dictionaries/privacyidea.definition.json  | 18 +++++++++---------
 dictionaries/privacyidea.translation.json | 18 +++++++++---------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/dictionaries/privacyidea.definition.json b/dictionaries/privacyidea.definition.json
index a762ff4..9cf5d28 100644
--- a/dictionaries/privacyidea.definition.json
+++ b/dictionaries/privacyidea.definition.json
@@ -15,10 +15,10 @@
     "en": "Password"
   },
   "otp": {
-    "en": "OTP"
+    "en": "One time code"
   },
   "webauthn": {
-    "en": "WebAuthn"
+    "en": "Security key"
   },
   "push": {
     "en": "Push"
@@ -48,19 +48,19 @@
     "en": "Alternate login options:"
   },
   "webauthn_insecure_context": {
-    "en": "Unable to proceed with Web Authn because the context is insecure!"
+    "en": "Unable to proceed with the security key because the context is insecure!"
   },
   "webauthn_library_unavailable": {
-    "en": "Could not load WebAuthn, your device probably does not support it. Please try again or use another method."
+    "en": "Could not load WebAuthn, your device probably does not support security keys. Please try again or use another method."
   },
   "webauthn_AbortError": {
     "en": "You have canceled the authentication."
   },
   "webauthn_InvalidStateError": {
-    "en": "You have used an unregistered WebAuthn device. Please use a different one."
+    "en": "You have used an unregistered security key. Please use a different one."
   },
   "webauthn_NotAllowedError": {
-    "en": "WebAuthn is disabled for this site."
+    "en": "Security keys are disabled for this site."
   },
   "webauthn_NotSupportedError": {
     "en": "Your device does not support WebAuthn features that we need."
@@ -69,13 +69,13 @@
     "en": "There is a problem with the WebAuthn parameters that we use."
   },
   "webauthn_other_error": {
-    "en": "There was a problem communicating with your device."
+    "en": "There was a problem communicating with your security key."
   },
   "webauthn_in_progress": {
-    "en": "Trying to communicate with your WebAuthn device. Plug it in and press the button or confirm the system dialog."
+    "en": "Trying to communicate with your security key. Plug it in and press the button or confirm the system dialog."
   },
   "webauthn_success": {
-    "en": "We heard back from your WebAuthn device. You have been authenticated."
+    "en": "We heard back from your security key. You have been authenticated."
   },
   "u2f_insecure_context": {
     "en": "Unable to proceed with U2F because the context is insecure!"
diff --git a/dictionaries/privacyidea.translation.json b/dictionaries/privacyidea.translation.json
index b369dfd..ccfceef 100644
--- a/dictionaries/privacyidea.translation.json
+++ b/dictionaries/privacyidea.translation.json
@@ -30,7 +30,7 @@
     "tr": "OTP"
   },
   "webauthn": {
-    "cs": "WebAuthn",
+    "cs": "Bezpečnostní klíč",
     "de": "WebAuthn",
     "nl": "WebAuthn",
     "tr": "Lütfen Tek Kullanımlık Parolanızı(OTP) giriniz"
@@ -86,21 +86,21 @@
     "tr": "Alternatif oturum açma seçenekleri:"
   },
   "webauthn_insecure_context": {
-    "cs": "Není možné použít autentizaci WebAuthn, protože neodpovídá bezpečnostní kontext.",
+    "cs": "Není možné použít autentizaci bezpečnostním klíčem, protože neodpovídá bezpečnostní kontext.",
     "tr": "Bağlam güvenli olmadığı için Web Authn ile devam edilemiyor!"
   },
   "webauthn_library_unavailable": {
-    "cs": "Načtení WebAuthn se nezdařilo, nejspíš ho Vaše zařízení nepodporuje. Zkuste to znovu nebo použijte jinou metodu.",
+    "cs": "Načtení WebAuthn se nezdařilo, nejspíš Vaše zařízení nepodporuje bezpečnostní klíče. Zkuste to znovu nebo použijte jinou metodu.",
     "tr": "WebAuthn kitaplığı yüklenemedi. Lütfen tekrar deneyin veya başka bir belirteç kullanın."
   },
   "webauthn_AbortError": {
-    "cs": "Ověření WebAuthn bylo zrušeno."
+    "cs": "Ověření bezpečnostním klíčem bylo zrušeno."
   },
   "webauthn_NotAllowedError": {
-    "cs": "WebAuthn není pro tuto stránku povoleno."
+    "cs": "Bezpečostní klíče nejsou pro tuto stránku povoleny."
   },
   "webauthn_InvalidStateError": {
-    "cs": "Použité WebAuthn zařízení nemáte zaregistrované, prosím použijte jiné."
+    "cs": "Použitý bezpečnostní klíč nemáte zaregistrovaný, prosím použijte jiný."
   },
   "webauthn_NotSupportedError": {
     "cs": "Vaše zařízení nepodporuje možnosti WebAuthn, které potřebujeme."
@@ -109,13 +109,13 @@
     "cs": "WebAuthn parametry jsou nesprávné."
   },
   "webauthn_other_error": {
-    "cs": "Komunikace s Vaším WebAuthn zařízením se nezdařila."
+    "cs": "Komunikace s Vaším bezpečnostním klíčem zařízením se nezdařila."
   },
   "webauthn_in_progress": {
-    "cs": "Probíhá komunikace s Vaším WebAuthn zařízením. Připojte fyzické zařízení a zmáčkněte tlačítko nebo potvrďte systémový dialog."
+    "cs": "Probíhá komunikace s bezpečnostním klíčem. Připojte fyzickou klíčenku a zmáčkněte tlačítko nebo potvrďte systémový dialog."
   },
   "webauthn_success": {
-    "cs": "Obdrželi jsme odpověď z Vašeho WebAuthn zařízení. Autentizace byla úspěšná."
+    "cs": "Obdrželi jsme odpověď z Vašeho bezpečnostního klíče. Autentizace byla úspěšná."
   },
   "u2f_insecure_context": {
     "cs": "Není možné použít autentizaci U2F, protože neodpovídá bezpečnostní kontext.",
-- 
GitLab