Fixed #12013 - Marked some default error messages for translation.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12088 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Jannis Leidel 2010-01-04 22:47:52 +00:00
parent 48edb177ed
commit b59d6212b1
1 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ class USZipCodeField(RegexField):
class USPhoneNumberField(CharField): class USPhoneNumberField(CharField):
default_error_messages = { 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): def clean(self, value):
@ -84,7 +84,7 @@ class USStateField(Field):
abbreviation for the given state. abbreviation for the given state.
""" """
default_error_messages = { default_error_messages = {
'invalid': u'Enter a U.S. state or territory.', 'invalid': _('Enter a U.S. state or territory.'),
} }
def clean(self, value): def clean(self, value):