mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-17 05:55:00 +08:00
Clarify what the username error refers to
Fixes https://github.com/vector-im/riot-web/issues/8839
This commit is contained in:
parent
8b66b6bdb3
commit
b74107116b
@ -313,7 +313,7 @@ module.exports = React.createClass({
|
|||||||
errMsg = _t('A phone number is required to register on this homeserver.');
|
errMsg = _t('A phone number is required to register on this homeserver.');
|
||||||
break;
|
break;
|
||||||
case "RegistrationForm.ERR_USERNAME_INVALID":
|
case "RegistrationForm.ERR_USERNAME_INVALID":
|
||||||
errMsg = _t("Only use lower case letters, numbers and '=_-./'");
|
errMsg = _t("A username can only contain lower case letters, numbers and '=_-./'");
|
||||||
break;
|
break;
|
||||||
case "RegistrationForm.ERR_USERNAME_BLANK":
|
case "RegistrationForm.ERR_USERNAME_BLANK":
|
||||||
errMsg = _t('You need to enter a username.');
|
errMsg = _t('You need to enter a username.');
|
||||||
|
@ -115,7 +115,7 @@ export default React.createClass({
|
|||||||
// user ID roughly looks okay from a Matrix perspective.
|
// user ID roughly looks okay from a Matrix perspective.
|
||||||
if (!SAFE_LOCALPART_REGEX.test(this.state.username)) {
|
if (!SAFE_LOCALPART_REGEX.test(this.state.username)) {
|
||||||
this.setState({
|
this.setState({
|
||||||
usernameError: _t("Only use lower case letters, numbers and '=_-./'"),
|
usernameError: _t("A username can only contain lower case letters, numbers and '=_-./'"),
|
||||||
});
|
});
|
||||||
return Promise.reject();
|
return Promise.reject();
|
||||||
}
|
}
|
||||||
|
@ -1132,7 +1132,7 @@
|
|||||||
"Email address": "Email address",
|
"Email address": "Email address",
|
||||||
"This will allow you to reset your password and receive notifications.": "This will allow you to reset your password and receive notifications.",
|
"This will allow you to reset your password and receive notifications.": "This will allow you to reset your password and receive notifications.",
|
||||||
"Skip": "Skip",
|
"Skip": "Skip",
|
||||||
"Only use lower case letters, numbers and '=_-./'": "Only use lower case letters, numbers and '=_-./'",
|
"A username can only contain lower case letters, numbers and '=_-./'": "A username can only contain lower case letters, numbers and '=_-./'",
|
||||||
"Username not available": "Username not available",
|
"Username not available": "Username not available",
|
||||||
"Username invalid: %(errMessage)s": "Username invalid: %(errMessage)s",
|
"Username invalid: %(errMessage)s": "Username invalid: %(errMessage)s",
|
||||||
"An error occurred: %(error_string)s": "An error occurred: %(error_string)s",
|
"An error occurred: %(error_string)s": "An error occurred: %(error_string)s",
|
||||||
|
Loading…
Reference in New Issue
Block a user