1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Move invalid user message into globalization

This commit is contained in:
SHestres 2024-12-18 19:54:32 +00:00
parent 6f2adbcc73
commit 51c4070879
3 changed files with 3 additions and 2 deletions

View file

@ -205,7 +205,7 @@ const UserNew = () => {
type='text'
id='txtUsername'
label='LabelName'
validator={{ pattern: '^([\\w \\-\'._@+]*)([\\w\\-\'._@+])([\\w \\-\'._@+]*)$', errMessage: 'Username must not be empty and contain only numbers, letters, spaces, or the following symbols -\'._@+' }}
validator={{ pattern: '^([\\w \\-\'._@+]*)([\\w\\-\'._@+])([\\w \\-\'._@+]*)$', errMessage: globalize.translate('MessageInvalidUsernameFormat') }}
options={'required'}
/>
</div>

View file

@ -327,7 +327,7 @@ const UserEdit = () => {
type='text'
id='txtUserName'
label='LabelName'
validator={{ pattern: '^([\\w \\-\'._@+]*)([\\w\\-\'._@+])([\\w \\-\'._@+]*)$', errMessage: 'Username must not be empty and contain only numbers, letters, spaces, or the following symbols -\'._@+' }}
validator={{ pattern: '^([\\w \\-\'._@+]*)([\\w\\-\'._@+])([\\w \\-\'._@+]*)$', errMessage: globalize.translate('MessageInvalidUsernameFormat') }}
options={'required'}
/>
</div>

View file

@ -1113,6 +1113,7 @@
"MessageImageTypeNotSelected": "Please select an image type from the drop-down menu.",
"MessageInvalidForgotPasswordPin": "An invalid or expired PIN code was entered. Please try again.",
"MessageInvalidUser": "Invalid username or password. Please try again.",
"MessageInvalidUsernameFormat": "Username must not be empty and contain only numbers, letters, spaces, or the following symbols -'._@+",
"MessageItemsAdded": "Items added.",
"MessageItemSaved": "Item saved.",
"MessageLeaveEmptyToInherit": "Leave empty to inherit settings from a parent item or the global default value.",