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:
parent
2cf448152e
commit
5c2e83eef5
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue