mirror of
https://github.com/django/django.git
synced 2025-11-28 22:49:09 +00:00
Fixed #30400 -- Improved typography of user facing strings.
Thanks Claude Paroz for assistance with translations.
This commit is contained in:
parent
2b03e8e9e8
commit
42b9a23267
64 changed files with 195 additions and 195 deletions
|
|
@ -236,14 +236,14 @@ 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."),
|
||||
_('Enter a valid “slug” consisting of letters, numbers, underscores or hyphens.'),
|
||||
'invalid'
|
||||
)
|
||||
|
||||
slug_unicode_re = _lazy_re_compile(r'^[-\w]+\Z')
|
||||
validate_unicode_slug = RegexValidator(
|
||||
slug_unicode_re,
|
||||
_("Enter a valid 'slug' consisting of Unicode letters, numbers, underscores, or hyphens."),
|
||||
_('Enter a valid “slug” consisting of Unicode letters, numbers, underscores, or hyphens.'),
|
||||
'invalid'
|
||||
)
|
||||
|
||||
|
|
@ -466,8 +466,8 @@ class DecimalValidator:
|
|||
@deconstructible
|
||||
class FileExtensionValidator:
|
||||
message = _(
|
||||
"File extension '%(extension)s' is not allowed. "
|
||||
"Allowed extensions are: '%(allowed_extensions)s'."
|
||||
'File extension “%(extension)s” is not allowed. '
|
||||
'Allowed extensions are: %(allowed_extensions)s.'
|
||||
)
|
||||
code = 'invalid_extension'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue