Browse files

[1.1.X] Fixed #12013 - Marked some default error messages for transla…

…tion.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12246 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent b3ec5e6 commit abea4e6ee3e87e384fb36cbdad0f7fb0b836dd49 @jezdez jezdez committed Jan 17, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/localflavor/us/forms.py
View
4 django/contrib/localflavor/us/forms.py
@@ -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):
@@ -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):

0 comments on commit abea4e6

Please sign in to comment.