Skip to content

Commit

Permalink
[1.1.X] Fixed #12013 - Marked some default error messages for transla…
Browse files Browse the repository at this point in the history
…tion.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
jezdez committed Jan 17, 2010
1 parent b3ec5e6 commit abea4e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/contrib/localflavor/us/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, *args, **kwargs):

class USPhoneNumberField(Field):
default_error_messages = {
'invalid': u'Phone numbers must be in XXX-XXX-XXXX format.',
'invalid': _('Phone numbers must be in XXX-XXX-XXXX format.'),
}

def clean(self, value):
Expand Down Expand Up @@ -84,7 +84,7 @@ class USStateField(Field):
abbreviation for the given state.
"""
default_error_messages = {
'invalid': u'Enter a U.S. state or territory.',
'invalid': _('Enter a U.S. state or territory.'),
}

def clean(self, value):
Expand Down

0 comments on commit abea4e6

Please sign in to comment.