Ticket #5798: auth-form-i18n.diff
File auth-form-i18n.diff, 615 bytes (added by , 17 years ago) |
---|
-
forms.py
old new 104 104 'site_name': site_name, 105 105 'user': user, 106 106 } 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]) 108 108 109 109 class PasswordChangeForm(oldforms.Manipulator): 110 110 "A form that lets a user change his password."