1
0
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:
Paul 2017-03-23 08:11:01 -07:00 committed by Tim Graham
parent 40ffabe8dc
commit 001cf53280

View File

@ -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'
)