Fixed #18298 -- Marked error strings as translatable in CA localflavor.

This commit is contained in:
Tyler Ball 2012-05-11 08:53:36 +02:00 committed by Claude Paroz
parent 3dde02640c
commit 1c30063faf
1 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ class CAPostalCodeField(CharField):
class CAPhoneNumberField(Field):
"""Canadian phone number field."""
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):
@ -66,7 +66,7 @@ class CAProvinceField(Field):
abbreviation for the given province.
"""
default_error_messages = {
'invalid': u'Enter a Canadian province or territory.',
'invalid': _(u'Enter a Canadian province or territory.'),
}
def clean(self, value):