Migrate more strings to translation keys (#11613)

This commit is contained in:
Michael Telatynski 2023-09-19 17:16:38 +01:00 committed by GitHub
parent d46d4b3d04
commit 5cb8cbd893
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
111 changed files with 8214 additions and 6766 deletions

View file

@ -120,11 +120,11 @@ export function messageForLoginError(
);
} else if (err.httpStatus === 401 || err.httpStatus === 403) {
if (err.errcode === "M_USER_DEACTIVATED") {
return _t("This account has been deactivated.");
return _t("auth|account_deactivated");
} else if (SdkConfig.get("disable_custom_urls")) {
return (
<div>
<div>{_t("Incorrect username and/or password.")}</div>
<div>{_t("auth|incorrect_credentials")}</div>
<div className="mx_Login_smallError">
{_t("Please note you are logging into the %(hs)s server, not matrix.org.", {
hs: serverConfig.hsName,
@ -133,7 +133,7 @@ export function messageForLoginError(
</div>
);
} else {
return _t("Incorrect username and/or password.");
return _t("auth|incorrect_credentials");
}
} else {
return messageForConnectionError(err, serverConfig);