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:
parent
48edb177ed
commit
b59d6212b1
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue