Fixed some i18n markup on date error messages. Thanks, Bastian Kleineidam. Refs

#3069.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@4702 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Malcolm Tredinnick 2007-03-11 10:37:33 +00:00
parent 2cf448152e
commit 5c2e83eef5
1 changed files with 2 additions and 1 deletions

View File

@ -140,7 +140,8 @@ def _isValidDate(date_string):
try: try:
date(year, month, day) date(year, month, day)
except ValueError, e: 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): def isValidANSIDate(field_data, all_data):
if not ansi_date_re.search(field_data): if not ansi_date_re.search(field_data):