mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #30400 -- Improved typography of user facing strings.
Thanks Claude Paroz for assistance with translations.
This commit is contained in:
committed by
Mariusz Felisiak
parent
2b03e8e9e8
commit
42b9a23267
@@ -1272,7 +1272,7 @@ class ModelMultipleChoiceField(ModelChoiceField):
|
||||
'list': _('Enter a list of values.'),
|
||||
'invalid_choice': _('Select a valid choice. %(value)s is not one of the'
|
||||
' available choices.'),
|
||||
'invalid_pk_value': _('"%(pk)s" is not a valid value.')
|
||||
'invalid_pk_value': _('“%(pk)s” is not a valid value.')
|
||||
}
|
||||
|
||||
def __init__(self, queryset, **kwargs):
|
||||
|
||||
@@ -159,7 +159,7 @@ def from_current_timezone(value):
|
||||
return timezone.make_aware(value, current_timezone)
|
||||
except Exception as exc:
|
||||
raise ValidationError(
|
||||
_('%(datetime)s couldn\'t be interpreted '
|
||||
_('%(datetime)s couldn’t be interpreted '
|
||||
'in time zone %(current_timezone)s; it '
|
||||
'may be ambiguous or it may not exist.'),
|
||||
code='ambiguous_timezone',
|
||||
|
||||
Reference in New Issue
Block a user