Code

Ticket #5798: auth-form-i18n.diff

File auth-form-i18n.diff, 615 bytes (added by maru, 6 years ago)
Line 
1--- /usr/share/python-support/python-django/django-dev/django/contrib/auth/forms.py     2007-08-22 19:43:49.000000000 +0100
2+++ forms.py    2007-10-22 23:10:22.000000000 +0100
3@@ -104,7 +104,7 @@
4                 'site_name': site_name,
5                 'user': user,
6                 }
7-            send_mail('Password reset on %s' % site_name, t.render(Context(c)), None, [user.email])
8+            send_mail(_('Password reset on %(site_name)s') % {'site_name' : site_name}, t.render(Context(c)), None, [user.email])
9 
10 class PasswordChangeForm(oldforms.Manipulator):
11     "A form that lets a user change his password."