- return HttpResponse("An error occurred: %s\n\n%s" % (exception, tb), mimetype='text/plain')
- return HttpResponse("Book imported successfully")
+ return HttpResponse(_("An error occurred: %s\n\n%s") % (exception, tb), mimetype='text/plain')
+ return HttpResponse(_("Book imported successfully"))