From 06cd07d67a80fc6846cc4b87da9737f620a5d49e Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sat, 29 Mar 2025 20:51:45 +0100 Subject: [PATCH] oidc: add missing translations Signed-off-by: Nicola Murino --- static/locales/en/translation.json | 10 ++++++++++ static/locales/it/translation.json | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/static/locales/en/translation.json b/static/locales/en/translation.json index e67496b5..c8eda5e9 100644 --- a/static/locales/en/translation.json +++ b/static/locales/en/translation.json @@ -662,6 +662,16 @@ "endpoint_required": "$t(storage.fs_error): endpoint is required", "username_required": "$t(storage.fs_error): username is required" }, + "oidc": { + "token_expired": "Your OpenID token has expired, please log in again", + "token_invalid_webadmin": "Your OpenID token is not valid for the WebAdmin UI. Log out of your OpenID server and log in to WebAdmin", + "token_invalid_webclient": "Your OpenID token is not valid for the WebClient UI. Log out of your OpenID server and log in to the WebClient", + "token_exchange_err": "Failed to exchange OpenID token", + "token_invalid": "Invalid OpenID token", + "role_admin_err": "Incorrect OpenID role, logged in user is not an administrator", + "role_user_err": "Incorrect OpenID role, logged in user is an administrator", + "get_user_err": "Failed to get user associated with OpenID token" + }, "oauth2": { "auth_verify_error": "Unable to verify OAuth2 code", "auth_validation_error": "Unable to verify OAuth2 code", diff --git a/static/locales/it/translation.json b/static/locales/it/translation.json index 38379f93..0969a7d8 100644 --- a/static/locales/it/translation.json +++ b/static/locales/it/translation.json @@ -662,6 +662,16 @@ "endpoint_required": "$t(storage.fs_error): endpoint è obbligatorio", "username_required": "$t(storage.fs_error): nome utente è obbligatorio" }, + "oidc": { + "token_expired": "Il tuo token OpenID è scaduto, effettua nuovamente l'accesso", + "token_invalid_webadmin": "Il tuo token OpenID non è valido per l'interfaccia utente WebAdmin. Esci dal tuo server OpenID e accedi a WebAdmin", + "token_invalid_webclient": "Il tuo token OpenID non è valido per l'interfaccia utente WebClient. Esci dal tuo server OpenID e accedi al WebClient", + "token_exchange_err": "Impossibile scambiare il token OpenID", + "token_invalid": "Token OpenID non valido", + "role_admin_err": "Ruolo OpenID errato, l'utente che ha effettuato l'accesso non è un amministratore", + "role_user_err": "Ruolo OpenID errato, l'utente che ha effettuato l'accesso è un amministratore", + "get_user_err": "Impossibile ottenere l'utente associato al token OpenID" + }, "oauth2": { "auth_verify_error": "Impossibile verificare il codice OAuth2", "auth_validation_error": "Impossibile validare il codice OAuth2",