Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed some i18n markup on date error messages. Thanks, Bastian Kleine…

…idam. Refs

#3069.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 5c2e83eef59c9591d1b5c65e5f265fc80271f283 1 parent 2cf4481
Malcolm Tredinnick authored March 11, 2007

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  django/core/validators.py
3  django/core/validators.py
@@ -140,7 +140,8 @@ def _isValidDate(date_string):
140 140
     try:
141 141
         date(year, month, day)
142 142
     except ValueError, e:
143  
-        raise ValidationError, gettext('Invalid date: %s.' % e)    
  143
+        msg = gettext('Invalid date: %s') % gettext(str(e))
  144
+        raise ValidationError, msg    
144 145
 
145 146
 def isValidANSIDate(field_data, all_data):
146 147
     if not ansi_date_re.search(field_data):

0 notes on commit 5c2e83e

Please sign in to comment.
Something went wrong with that request. Please try again.