diff --git a/django/contrib/localflavor/us/forms.py b/django/contrib/localflavor/us/forms.py index 5b24cde581e..cd18a7da9f6 100644 --- a/django/contrib/localflavor/us/forms.py +++ b/django/contrib/localflavor/us/forms.py @@ -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):