mirror of
https://github.com/django/django.git
synced 2024-12-23 01:25:58 +00:00
Fixed #27952 -- Added translation hint for RegexValidator error message.
This commit is contained in:
parent
40ffabe8dc
commit
001cf53280
@ -234,6 +234,7 @@ validate_email = EmailValidator()
|
||||
slug_re = _lazy_re_compile(r'^[-a-zA-Z0-9_]+\Z')
|
||||
validate_slug = RegexValidator(
|
||||
slug_re,
|
||||
# Translators: "letters" means latin letters: a-z and A-Z.
|
||||
_("Enter a valid 'slug' consisting of letters, numbers, underscores or hyphens."),
|
||||
'invalid'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user