Opened 9 years ago

Closed 9 years ago

Last modified 9 years ago

#26544 closed Bug (fixed)

SetPasswordForm help_text always uses LANGUAGE_CODE as locale

Reported by: Michael Bitzi Owned by: nobody
Component: contrib.auth Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The SetPasswordForm uses help_text=password_validation.password_validators_help_text_html(), however it will only translate to the LANGUAGE_CODE setting and not to the users language.

I am not very familiar with django internals, but a workaround of help_text=lazy(password_validation.password_validators_help_text_html) seemed to work for me.

Attachments (1)

django-setpasswordform-helptext.png (36.9 KB ) - added by Michael Bitzi 9 years ago.
SetPasswordForm

Download all attachments as: .zip

Change History (6)

by Michael Bitzi, 9 years ago

SetPasswordForm

comment:1 by Tim Graham, 9 years ago

Triage Stage: UnreviewedAccepted

comment:2 by Claude Paroz, 9 years ago

Has patch: set

comment:3 by Tim Graham, 9 years ago

Triage Stage: AcceptedReady for checkin

comment:4 by Claude Paroz <claude@…>, 9 years ago

Resolution: fixed
Status: newclosed

In b26fedac:

Fixed #26544 -- Delayed translations of SetPasswordForm help_texts

Thanks Michael Bitzi for the reporti and Tim Graham for the review.

comment:5 by Claude Paroz <claude@…>, 9 years ago

In 669b8e3d:

[1.9.x] Fixed #26544 -- Delayed translations of SetPasswordForm help_texts

Thanks Michael Bitzi for the reporti and Tim Graham for the review.
Backport of b26fedacef from master.

Note: See TracTickets for help on using tickets.
Back to Top