From c78359bc078946b154fe15ebc1fe58453d0b2d50 Mon Sep 17 00:00:00 2001 From: Jon Koops Date: Mon, 28 Aug 2023 16:56:40 +0200 Subject: [PATCH] Add missing translation for theme select placeholder text (#22761) --- .../public/locales/ca/realm-settings-help.json | 2 +- .../public/locales/en/realm-settings-help.json | 6 +++--- .../admin-ui/public/locales/en/realm-settings.json | 2 +- .../public/locales/es/realm-settings-help.json | 2 +- .../public/locales/fr/realm-settings-help.json | 2 +- .../public/locales/ja/realm-settings-help.json | 2 +- .../public/locales/lt/realm-settings-help.json | 2 +- .../public/locales/no/realm-settings-help.json | 2 +- .../public/locales/pt-BR/realm-settings-help.json | 2 +- .../public/locales/ru/realm-settings-help.json | 2 +- .../public/locales/zh-CN/realm-settings-help.json | 2 +- js/apps/admin-ui/src/realm-settings/ThemesTab.tsx | 13 +++++-------- 12 files changed, 18 insertions(+), 21 deletions(-) diff --git a/js/apps/admin-ui/public/locales/ca/realm-settings-help.json b/js/apps/admin-ui/public/locales/ca/realm-settings-help.json index 58623013cb..0c56000ffa 100644 --- a/js/apps/admin-ui/public/locales/ca/realm-settings-help.json +++ b/js/apps/admin-ui/public/locales/ca/realm-settings-help.json @@ -1,7 +1,7 @@ { "requireSsl": "És HTTP obligatori? ''cap'' significa que HTTPS no és obligatori per cap direcicón IP de client, ''peticions externes'' indica que localhost i les adreces IP privades poden accedir sense HTTPS, ''totes les peticions'' vol dir que HTTPS és obligatori per a totes les adreces IP.", "accountTheme": "Selecciona el tema per a les pàgines de gestió del compte d''usuari.", - "adminUITheme": "Selecciona el tema per a la consola d''administració.", + "adminTheme": "Selecciona el tema per a la consola d''administració.", "emailTheme": "Selecciona el tema per als correus electrònics que són enviats pel servidor.", "failureFactor": "Indica quants errors es permeten abans que es dispari una espera.", "waitIncrementSeconds": "Quan s''ha arribat al llindar d''error, quant de temps ha d''estar un usuari bloquejat?", diff --git a/js/apps/admin-ui/public/locales/en/realm-settings-help.json b/js/apps/admin-ui/public/locales/en/realm-settings-help.json index 6bf372c022..f4a43ec9f0 100644 --- a/js/apps/admin-ui/public/locales/en/realm-settings-help.json +++ b/js/apps/admin-ui/public/locales/en/realm-settings-help.json @@ -9,9 +9,9 @@ "userProfileEnabled": "If enabled, allows managing user profiles.", "endpoints": "Shows the configuration of the protocol endpoints", "loginTheme": "Select theme for login, OTP, grant, registration and forgot password pages.", - "accountTheme": "Select theme for user account management pages.", - "adminUITheme": "Select theme for Admin UI.", - "emailTheme": "Select theme for emails that are sent by the server.", + "accountTheme": "Select a theme for the user account management console.", + "adminTheme": "Select a theme for administration console.", + "emailTheme": "Select a theme for emails that are sent by the server.", "displayName": "Display name of provider when linked in Admin UI", "priority": "Priority of the provider", "enabled": "Set if the keys are enabled", diff --git a/js/apps/admin-ui/public/locales/en/realm-settings.json b/js/apps/admin-ui/public/locales/en/realm-settings.json index 662f2371e0..5610a7291c 100644 --- a/js/apps/admin-ui/public/locales/en/realm-settings.json +++ b/js/apps/admin-ui/public/locales/en/realm-settings.json @@ -179,7 +179,7 @@ "samlIdentityProviderMetadata": "SAML 2.0 Identity Provider Metadata", "loginTheme": "Login theme", "accountTheme": "Account theme", - "adminTheme": "Admin UI theme", + "adminTheme": "Admin theme", "emailTheme": "Email theme", "internationalization": "Internationalization", "localization": "Localization", diff --git a/js/apps/admin-ui/public/locales/es/realm-settings-help.json b/js/apps/admin-ui/public/locales/es/realm-settings-help.json index d165816ce6..a4109612cb 100644 --- a/js/apps/admin-ui/public/locales/es/realm-settings-help.json +++ b/js/apps/admin-ui/public/locales/es/realm-settings-help.json @@ -1,7 +1,7 @@ { "requireSsl": "¿Es HTTP obligatorio? ''ninguna'' significa que HTTPS no es obligatorio para ninguna direcicón IP de cliente, ''peticiones externas'' indica que localhost y las direcciones IP privadas pueden acceder sin HTTPS, ''todas las peticiones'' significa que HTTPS es obligatorio para todas las direcciones IP.", "accountTheme": "Selecciona el tema para las páginas de gestión de la cuenta de usuario.", - "adminUITheme": "Selecciona el tema para la consola de administración.", + "adminTheme": "Selecciona el tema para la consola de administración.", "emailTheme": "Selecciona el tema para los emails que son enviados por el servidor.", "failureFactor": "Indica cuantos fallos se permiten antes de que se dispare una espera.", "waitIncrementSeconds": "Cuando se ha alcanzado el umbral de fallo, ¿cuanto tiempo debe estar un usuario bloqueado?", diff --git a/js/apps/admin-ui/public/locales/fr/realm-settings-help.json b/js/apps/admin-ui/public/locales/fr/realm-settings-help.json index 827c4498f7..3d60e03352 100644 --- a/js/apps/admin-ui/public/locales/fr/realm-settings-help.json +++ b/js/apps/admin-ui/public/locales/fr/realm-settings-help.json @@ -1,7 +1,7 @@ { "requireSsl": "Niveau d''exigence HTTPS : ''aucun'' signifie que le HTTPS n''est requis pour aucune adresse IP cliente. ''les requêtes externes'' signifie que localhost et les adresses IP privées peuvent accéder sans HTTPS. ''toutes les requêtes'' signifie que le protocole HTTPS est obligatoire pour toutes les adresses IP.", "accountTheme": "Sélectionnez le thème pour la gestion des comptes.", - "adminUITheme": "Sélectionnez le thème de la UI d''administration.", + "adminTheme": "Sélectionnez le thème de la UI d''administration.", "emailTheme": "Sélectionnez le thème pour les courriels envoyées par le serveur.", "failureFactor": "Nombre d''erreurs avant de déclencher le temps d''attente.", "waitIncrementSeconds": "Quand le seuil des erreurs est atteint, combien de temps l''utilisateur est-il bloqué ?", diff --git a/js/apps/admin-ui/public/locales/ja/realm-settings-help.json b/js/apps/admin-ui/public/locales/ja/realm-settings-help.json index 8eec4fbd20..6ebcd7f2b3 100644 --- a/js/apps/admin-ui/public/locales/ja/realm-settings-help.json +++ b/js/apps/admin-ui/public/locales/ja/realm-settings-help.json @@ -8,7 +8,7 @@ "userManagedAccess": "有効にすると、ユーザーはアカウント管理コンソールを使用してリソースとパーミッションを管理できます。", "endpoints": "プロトコル・エンドポイントの設定を表示します。", "accountTheme": "ユーザー・アカウント管理画面のテーマを選択します。", - "adminUITheme": "管理コンソールのテーマを選択します。", + "adminTheme": "管理コンソールのテーマを選択します。", "emailTheme": "サーバーから送信されるEメールのテーマを選択します。", "save-user-events": "有効の場合は、ログインイベントがデータベースに保存され、管理コンソールとアカウント管理で使用することができます。", "save-admin-events": "有効の場合は、管理イベントがデータベースに保存され、管理コンソールで使用可能になります。", diff --git a/js/apps/admin-ui/public/locales/lt/realm-settings-help.json b/js/apps/admin-ui/public/locales/lt/realm-settings-help.json index f55cdf61f1..0614c7c2b3 100644 --- a/js/apps/admin-ui/public/locales/lt/realm-settings-help.json +++ b/js/apps/admin-ui/public/locales/lt/realm-settings-help.json @@ -1,7 +1,7 @@ { "requireSsl": "Ar HTTPS privalomas? 'niekada' - HTTPS nereikalaujamas. 'išorinėms užklausoms' - jungiantis iš localhost ar serverio IP adresų galima prieiti ir per HTTP. 'visoms užklausoms' - HTTPS reikalaujamas jungiantis iš visų IP adresų.", "accountTheme": "Pasirinkite kaip atrodys naudotojo profilio valdymo langai.", - "adminUITheme": "Pasirinkite kaip atrodys administravimo konsolės langai.", + "adminTheme": "Pasirinkite kaip atrodys administravimo konsolės langai.", "emailTheme": "Pasirinkite kaip atrodys siunčiami el. pašto laiškai.", "save-user-events": "Jei įgalinta, tuomet su prisijungimu susiję veiksmai saugomi duomenų bazėje ir tampa prieinami per administravimo bei naudotojo paskyros valdymo skydus. ", "save-admin-events": "Jei įgalinta, tuomet administravimo veiksmai saugomi duomenų bazėje ir tampa prieinami per administravimo valdymo skydą.", diff --git a/js/apps/admin-ui/public/locales/no/realm-settings-help.json b/js/apps/admin-ui/public/locales/no/realm-settings-help.json index cd62789200..1c2e65bc27 100644 --- a/js/apps/admin-ui/public/locales/no/realm-settings-help.json +++ b/js/apps/admin-ui/public/locales/no/realm-settings-help.json @@ -1,7 +1,7 @@ { "requireSsl": "Kreves HTTPS? 'Ingen' betyr at HTTPS ikke kreves for noen klienters IP-adresse. 'Ekstern forespørsel' betyr at localhost og private IP-adresser kan få tilgang uten HTTPS. 'Alle forespørsler' betyr at HTTPS kreves for alle IP-adresser.", "accountTheme": "Velg tema for brukerkontoadministrasjonssider.", - "adminUITheme": "Velg et tema for administrasjonskonsollen.", + "adminTheme": "Velg et tema for administrasjonskonsollen.", "emailTheme": "Velg tema for e-post sendt av server.", "save-user-events": "Hvis aktivert vil innloggingshendelser bli lagret i databasen, noe som gjør hendelsene tilgjengelige for administrator og kontoadministrasjonskonsoll.", "save-admin-events": "Hvis aktivert vil administratorhendelser bli lagret i databasen, som vil gjøre hendelsene tilgjengelige i administrasjonskonsollen.", diff --git a/js/apps/admin-ui/public/locales/pt-BR/realm-settings-help.json b/js/apps/admin-ui/public/locales/pt-BR/realm-settings-help.json index 31972ed228..0a6108efa0 100644 --- a/js/apps/admin-ui/public/locales/pt-BR/realm-settings-help.json +++ b/js/apps/admin-ui/public/locales/pt-BR/realm-settings-help.json @@ -1,7 +1,7 @@ { "requireSsl": "É necessário SSL? 'Nunca' significa que HTTPS não é requerido para nenhum endereço IP cliente. 'Requisições externas' significa que localhost e IPs privados podem acessar sem HTTPS. 'Todas requisições' significa que HTTPS é requerido para todos os endereços IPs.", "accountTheme": "Selecione o tema para as páginas de administração de conta do usuário.", - "adminUITheme": "Selecione o tema para o UI de administração.", + "adminTheme": "Selecione o tema para o UI de administração.", "emailTheme": "Selecione o tema para os e-mail que são enviados pelo servidor.", "save-user-events": "If enabled login events are saved to the database which makes events available to the Admin and Account management UIs.", "save-admin-events": "If enabled admin events are saved to the database which makes events available to the Admin UI.", diff --git a/js/apps/admin-ui/public/locales/ru/realm-settings-help.json b/js/apps/admin-ui/public/locales/ru/realm-settings-help.json index 401b0461b4..64b5a70e2c 100644 --- a/js/apps/admin-ui/public/locales/ru/realm-settings-help.json +++ b/js/apps/admin-ui/public/locales/ru/realm-settings-help.json @@ -1,7 +1,7 @@ { "requireSsl": "Требуется ли HTTPS? 'нет' означает, что HTTPS не требуется для клиентов с любым IP адресом. 'Внешние запросы' означает, что localhost и внутренние IP адреса могут получить доступ без HTTPS. 'Все запросы' означает, что HTTPS требуется вне зависимости от IP адреса.", "accountTheme": "Выберите тему для управления учетной записью пользователя.", - "adminUITheme": "Выберите тему для консоли администратора.", + "adminTheme": "Выберите тему для консоли администратора.", "emailTheme": "Выберите тему для E-mail, которые будут отсылаться с сервера.", "save-user-events": "Если включено, то события будут сохранены в базу данных, что сделает их доступными администратору и консоли управления учетной записью.", "save-admin-events": "Если включено, то события администратора будет сохранены в базу данных, что сделает их доступными через консоль администратора.", diff --git a/js/apps/admin-ui/public/locales/zh-CN/realm-settings-help.json b/js/apps/admin-ui/public/locales/zh-CN/realm-settings-help.json index 1158fdf006..545857d6a9 100644 --- a/js/apps/admin-ui/public/locales/zh-CN/realm-settings-help.json +++ b/js/apps/admin-ui/public/locales/zh-CN/realm-settings-help.json @@ -10,7 +10,7 @@ "endpoints": "显示协议端点的配置", "loginTheme": "为登录、OTP、授予、注册和忘记密码页面选择主题。", "accountTheme": "为用户账户管理页面选择主题。", - "adminUITheme": "为管理界面选择主题。", + "adminTheme": "为管理界面选择主题。", "emailTheme": "为服务器发送的电子邮件选择主题。", "displayName": "在管理 UI 中链接时显示提供商的名称", "priority": "供应商的优先级", diff --git a/js/apps/admin-ui/src/realm-settings/ThemesTab.tsx b/js/apps/admin-ui/src/realm-settings/ThemesTab.tsx index f1196f9ed2..d79281a2a2 100644 --- a/js/apps/admin-ui/src/realm-settings/ThemesTab.tsx +++ b/js/apps/admin-ui/src/realm-settings/ThemesTab.tsx @@ -73,9 +73,8 @@ export const RealmSettingsThemesTab = ({ }} selections={field.value} variant={SelectVariant.single} - aria-label={t("loginTheme")} isOpen={loginThemeOpen} - placeholderText="Select a theme" + placeholderText={t("selectATheme")} data-testid="select-login-theme" > {themeTypes.login.map((theme, idx) => ( @@ -117,7 +116,7 @@ export const RealmSettingsThemesTab = ({ variant={SelectVariant.single} aria-label={t("accountTheme")} isOpen={accountThemeOpen} - placeholderText="Select a theme" + placeholderText={t("selectATheme")} data-testid="select-account-theme" > {themeTypes.account @@ -140,7 +139,7 @@ export const RealmSettingsThemesTab = ({ fieldId="kc-admin-ui-theme" labelIcon={ } @@ -159,9 +158,8 @@ export const RealmSettingsThemesTab = ({ }} selections={field.value} variant={SelectVariant.single} - aria-label={t("adminUITheme")} isOpen={adminUIThemeOpen} - placeholderText="Select a theme" + placeholderText={t("selectATheme")} data-testid="select-admin-theme" > {themeTypes.admin @@ -203,9 +201,8 @@ export const RealmSettingsThemesTab = ({ }} selections={field.value} variant={SelectVariant.single} - aria-label={t("emailTheme")} isOpen={emailThemeOpen} - placeholderText="Select a theme" + placeholderText={t("selectATheme")} data-testid="select-email-theme" > {themeTypes.email.map((theme, idx) => (