Author: adrian
Date: 2006-08-21 12:43:34 -0500 (Mon, 21 Aug 2006)
New Revision: 3634

Modified:
   django/trunk/django/core/validators.py
Log:
Fixed #2577 -- Made isSlug() validator translation-aware. Thanks for the patch, 
[EMAIL PROTECTED]

Modified: django/trunk/django/core/validators.py
===================================================================
--- django/trunk/django/core/validators.py      2006-08-21 17:40:54 UTC (rev 
3633)
+++ django/trunk/django/core/validators.py      2006-08-21 17:43:34 UTC (rev 
3634)
@@ -68,7 +68,7 @@
 
 def isSlug(field_data, all_data):
     if not slug_re.search(field_data):
-        raise ValidationError, "This value must contain only letters, numbers, 
underscores or hyphens."
+        raise ValidationError, gettext("This value must contain only letters, 
numbers, underscores or hyphens.")
 
 def isLowerCase(field_data, all_data):
     if field_data.lower() != field_data:


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to