Author: jezdez
Date: 2010-01-04 16:47:52 -0600 (Mon, 04 Jan 2010)
New Revision: 12088

Modified:
   django/trunk/django/contrib/localflavor/us/forms.py
Log:
Fixed #12013 - Marked some default error messages for translation.

Modified: django/trunk/django/contrib/localflavor/us/forms.py
===================================================================
--- django/trunk/django/contrib/localflavor/us/forms.py 2010-01-04 22:22:16 UTC 
(rev 12087)
+++ django/trunk/django/contrib/localflavor/us/forms.py 2010-01-04 22:47:52 UTC 
(rev 12088)
@@ -22,7 +22,7 @@
 
 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 @@
     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):

--

You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.


Reply via email to