1
0
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:
Jon Dufresne
2019-06-27 09:39:47 -07:00
committed by Mariusz Felisiak
parent 2b03e8e9e8
commit 42b9a23267
64 changed files with 195 additions and 195 deletions

View File

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

View File

@@ -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 couldnt be interpreted '
'in time zone %(current_timezone)s; it '
'may be ambiguous or it may not exist.'),
code='ambiguous_timezone',