Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 1c30063faf88662c26c2e8847f1544cdb078e395 1 parent 3dde026
Tyler Ball tylerball authored claudep committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/localflavor/ca/forms.py
4 django/contrib/localflavor/ca/forms.py
View
@@ -44,7 +44,7 @@ def clean(self, value):
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):
Please sign in to comment.
Something went wrong with that request. Please try again.