fix(options/mfa): double colons in warning

This commit is contained in:
Elian Doran 2025-03-29 00:44:51 +02:00
parent 4cde9253ed
commit f743cfc35c
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View File

@ -317,8 +317,8 @@ export default class MultiFactorAuthenticationOptions extends OptionsWidget {
this.$oauthWarning.show(); this.$oauthWarning.show();
if (result.missingVars && result.missingVars.length > 0) { if (result.missingVars && result.missingVars.length > 0) {
this.$missingVars.show(); this.$missingVars.show();
const missingVarsList = result.missingVars.map(v => `"${v}"`).join(", "); const missingVarsList = result.missingVars.map(v => `"${v}"`);
this.$missingVars.html(`${t("multi_factor_authentication.oauth_missing_vars")}: ${missingVarsList}`); this.$missingVars.html(t("multi_factor_authentication.oauth_missing_vars", { variables: missingVarsList.join(", ") }));
} }
} }
}); });

View File

@ -1325,7 +1325,7 @@
"oauth_title": "OAuth/OpenID 认证", "oauth_title": "OAuth/OpenID 认证",
"oauth_description": "OpenID 是一种标准化方式,允许您使用其他服务(如 Google的账户登录网站以验证您的身份。请参阅这些 <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">指南</a> 通过 Google 设置 OpenID 服务。", "oauth_description": "OpenID 是一种标准化方式,允许您使用其他服务(如 Google的账户登录网站以验证您的身份。请参阅这些 <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">指南</a> 通过 Google 设置 OpenID 服务。",
"oauth_description_warning": "要启用 OAuth/OpenID您需要设置 config.ini 文件中的 OAuth/OpenID 基础 URL、客户端 ID 和客户端密钥,并重新启动应用程序。", "oauth_description_warning": "要启用 OAuth/OpenID您需要设置 config.ini 文件中的 OAuth/OpenID 基础 URL、客户端 ID 和客户端密钥,并重新启动应用程序。",
"oauth_missing_vars": "缺少变量", "oauth_missing_vars": "缺少变量: {{missingVars}}",
"oauth_user_account": "用户账号:", "oauth_user_account": "用户账号:",
"oauth_user_email": "用户邮箱:", "oauth_user_email": "用户邮箱:",
"oauth_user_not_logged_in": "未登录!" "oauth_user_not_logged_in": "未登录!"

View File

@ -1336,7 +1336,7 @@
"oauth_title": "OAuth/OpenID", "oauth_title": "OAuth/OpenID",
"oauth_description": "OpenID is a standardized way to let you log into websites using an account from another service, like Google, to verify your identity. Follow these <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">instructions</a> to setup an OpenID service through google.", "oauth_description": "OpenID is a standardized way to let you log into websites using an account from another service, like Google, to verify your identity. Follow these <a href=\"https://developers.google.com/identity/openid-connect/openid-connect\">instructions</a> to setup an OpenID service through google.",
"oauth_description_warning": "To enable OAuth/OpenID, you need to set the OAuth/OpenID base URL, client ID and client secret in the config.ini file and restart the application.", "oauth_description_warning": "To enable OAuth/OpenID, you need to set the OAuth/OpenID base URL, client ID and client secret in the config.ini file and restart the application.",
"oauth_missing_vars": "Missing variables: ", "oauth_missing_vars": "Missing variables: {{variables}}",
"oauth_user_account": "User Account: ", "oauth_user_account": "User Account: ",
"oauth_user_email": "User Email: ", "oauth_user_email": "User Email: ",
"oauth_user_not_logged_in": "Not logged in!" "oauth_user_not_logged_in": "Not logged in!"