From 1c30063faf88662c26c2e8847f1544cdb078e395 Mon Sep 17 00:00:00 2001 From: Tyler Ball Date: Fri, 11 May 2012 08:53:36 +0200 Subject: [PATCH] Fixed #18298 -- Marked error strings as translatable in CA localflavor. --- django/contrib/localflavor/ca/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/localflavor/ca/forms.py b/django/contrib/localflavor/ca/forms.py index 37f966eb64..c3be79968f 100644 --- a/django/contrib/localflavor/ca/forms.py +++ b/django/contrib/localflavor/ca/forms.py @@ -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):