Ticket #2730: forms.diff

File forms.diff, 782 bytes (added by michael.samoylov@…, 18 years ago)

translation patch

  • contrib/auth/forms.py

     
    8181        try:
    8282            self.user_cache = User.objects.get(email__iexact=new_data)
    8383        except User.DoesNotExist:
    84             raise validators.ValidationError, "That e-mail address doesn't have an associated user acount. Are you sure you've registered?"
     84            raise validators.ValidationError, _("That e-mail address doesn't have an associated user acount. Are you sure you've registered?")
    8585
    8686    def save(self, domain_override=None, email_template_name='registration/password_reset_email.html'):
    8787        "Calculates a new password randomly and sends it to the user"
Back to Top