Ticket #8617: wizardtrans.diff
File wizardtrans.diff, 1.2 KB (added by , 16 years ago) |
---|
-
django/contrib/formtools/wizard.py
12 12 from django.shortcuts import render_to_response 13 13 from django.template.context import RequestContext 14 14 from django.utils.hashcompat import md5_constructor 15 from django.utils.translation import ugettext_lazy as _ 15 16 from django.contrib.formtools.utils import security_hash 16 17 17 18 class FormWizard(object): … … 126 127 This default implementation simply renders the form for the given step, 127 128 but subclasses may want to display an error message, etc. 128 129 """ 129 return self.render(self.get_form(step), request, step, context={'wizard_error': 'We apologize, but your form has expired. Please continue filling out the form from this page.'})130 return self.render(self.get_form(step), request, step, context={'wizard_error': _('We apologize, but your form has expired. Please continue filling out the form from this page.')}) 130 131 131 132 def render_revalidation_failure(self, request, step, form): 132 133 """