- return HttpResponse("An error occurred: %s\n\n%s" % (exception, tb), mimetype='text/plain')
- return HttpResponse("Book imported successfully")
+ _('Today is %(month)s, %(day)s.') % {'month': m, 'day': d}
+ return HttpResponse(_("An error occurred: %(exception)s\n\n%(tb)s") % {'exception':exception, 'tb':tb}, mimetype='text/plain')
+ return HttpResponse(_("Book imported successfully"))