Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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
@malcolmt malcolmt authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  django/core/validators.py
View
3  django/core/validators.py
@@ -140,7 +140,8 @@ def _isValidDate(date_string):
try:
date(year, month, day)
except ValueError, e:
- raise ValidationError, gettext('Invalid date: %s.' % e)
+ msg = gettext('Invalid date: %s') % gettext(str(e))
+ raise ValidationError, msg
def isValidANSIDate(field_data, all_data):
if not ansi_date_re.search(field_data):
Please sign in to comment.
Something went wrong with that request. Please try again.