Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit abea4e6ee3e87e384fb36cbdad0f7fb0b836dd49 1 parent b3ec5e6
Jannis Leidel jezdez authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/contrib/localflavor/us/
4 django/contrib/localflavor/us/
@@ -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):
Please sign in to comment.
Something went wrong with that request. Please try again.