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
1 changed files with 1 additions and 0 deletions

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