From b59d6212b1876644b5e404b52f925953e3667eb7 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Mon, 4 Jan 2010 22:47:52 +0000 Subject: [PATCH] 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 --- django/contrib/localflavor/us/forms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/contrib/localflavor/us/forms.py b/django/contrib/localflavor/us/forms.py index 5b24cde581..cd18a7da9f 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):