From b74107116b4c4a14a5edfddc14e23b38a199cd1d Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Thu, 21 Feb 2019 15:00:56 +0000 Subject: [PATCH] Clarify what the username error refers to Fixes https://github.com/vector-im/riot-web/issues/8839 --- src/components/structures/auth/Registration.js | 2 +- src/components/views/dialogs/SetMxIdDialog.js | 2 +- src/i18n/strings/en_EN.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/structures/auth/Registration.js b/src/components/structures/auth/Registration.js index 30b553a5b1..5d05e4139b 100644 --- a/src/components/structures/auth/Registration.js +++ b/src/components/structures/auth/Registration.js @@ -313,7 +313,7 @@ module.exports = React.createClass({ errMsg = _t('A phone number is required to register on this homeserver.'); break; 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; case "RegistrationForm.ERR_USERNAME_BLANK": errMsg = _t('You need to enter a username.'); diff --git a/src/components/views/dialogs/SetMxIdDialog.js b/src/components/views/dialogs/SetMxIdDialog.js index 6f11a28eae..dfaff52278 100644 --- a/src/components/views/dialogs/SetMxIdDialog.js +++ b/src/components/views/dialogs/SetMxIdDialog.js @@ -115,7 +115,7 @@ export default React.createClass({ // user ID roughly looks okay from a Matrix perspective. if (!SAFE_LOCALPART_REGEX.test(this.state.username)) { 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(); } diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index abedde2a10..0212903641 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -1132,7 +1132,7 @@ "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.", "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 invalid: %(errMessage)s": "Username invalid: %(errMessage)s", "An error occurred: %(error_string)s": "An error occurred: %(error_string)s",