mirror of https://github.com/django/django.git
Fixed #18298 -- Marked error strings as translatable in CA localflavor.
This commit is contained in:
parent
3dde02640c
commit
1c30063faf
|
@ -44,7 +44,7 @@ class CAPostalCodeField(CharField):
|
||||||
class CAPhoneNumberField(Field):
|
class CAPhoneNumberField(Field):
|
||||||
"""Canadian phone number field."""
|
"""Canadian phone number field."""
|
||||||
default_error_messages = {
|
default_error_messages = {
|
||||||
'invalid': u'Phone numbers must be in XXX-XXX-XXXX format.',
|
'invalid': _(u'Phone numbers must be in XXX-XXX-XXXX format.'),
|
||||||
}
|
}
|
||||||
|
|
||||||
def clean(self, value):
|
def clean(self, value):
|
||||||
|
@ -66,7 +66,7 @@ class CAProvinceField(Field):
|
||||||
abbreviation for the given province.
|
abbreviation for the given province.
|
||||||
"""
|
"""
|
||||||
default_error_messages = {
|
default_error_messages = {
|
||||||
'invalid': u'Enter a Canadian province or territory.',
|
'invalid': _(u'Enter a Canadian province or territory.'),
|
||||||
}
|
}
|
||||||
|
|
||||||
def clean(self, value):
|
def clean(self, value):
|
||||||
|
|
Loading…
Reference in New Issue