0
0
mirror of https://github.com/django/django.git synced 2024-11-30 07:06:18 +01:00

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

View File

@ -22,7 +22,7 @@ class USZipCodeField(RegexField):
class USPhoneNumberField(CharField):
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):