#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)
Change History (6)
by , 9 years ago
Attachment: | django-setpasswordform-helptext.png added |
---|
comment:1 by , 9 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:3 by , 9 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
Note:
See TracTickets
for help on using tickets.
SetPasswordForm