Migrate more strings to translation keys (#11651)
This commit is contained in:
parent
560449676b
commit
f4d056fd38
127 changed files with 8916 additions and 8272 deletions
|
@ -60,7 +60,7 @@ export default class PasswordReset {
|
|||
},
|
||||
function (err) {
|
||||
if (err.errcode === "M_THREEPID_NOT_FOUND") {
|
||||
err.message = _t("This email address was not found");
|
||||
err.message = _t("auth|reset_password_email_not_found_title");
|
||||
} else if (err.httpStatus) {
|
||||
err.message = err.message + ` (Status ${err.httpStatus})`;
|
||||
}
|
||||
|
@ -108,11 +108,9 @@ export default class PasswordReset {
|
|||
);
|
||||
} catch (err: any) {
|
||||
if (err.httpStatus === 401) {
|
||||
err.message = _t("Failed to verify email address: make sure you clicked the link in the email");
|
||||
err.message = _t("settings|general|add_email_failed_verification");
|
||||
} else if (err.httpStatus === 404) {
|
||||
err.message = _t(
|
||||
"Your email address does not appear to be associated with a Matrix ID on this homeserver.",
|
||||
);
|
||||
err.message = _t("auth|reset_password_email_not_associated");
|
||||
} else if (err.httpStatus) {
|
||||
err.message += ` (Status ${err.httpStatus})`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue