Ticket #5798: auth-form-i18n.diff

File auth-form-i18n.diff, 615 bytes (added by maru, 7 years ago)
  • forms.py

    old new  
    104104                'site_name': site_name,
    105105                'user': user,
    106106                }
    107             send_mail('Password reset on %s' % site_name, t.render(Context(c)), None, [user.email])
     107            send_mail(_('Password reset on %(site_name)s') % {'site_name' : site_name}, t.render(Context(c)), None, [user.email])
    108108
    109109class PasswordChangeForm(oldforms.Manipulator):
    110110    "A form that lets a user change his password."
Back to Top