Opened 8 years ago

Closed 8 years ago

#26587 closed Bug (duplicate)

SetPasswordForm help_text is not being translated (password_validators)

Reported by: William Buick Owned by: nobody
Component: Internationalization Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I have noticed that the help text on the change password form is not being translated at all. The following line is causing the problem. This is in use in several places in forms.py in the auth app.

help_text=password_validation.password_validators_help_text_html()

It seems that the help_text is being executed once at django startup and would translate the string into whichever language django was configured to use at the time the files are first parsed. I'm not sure of the best way to solve this but some sort of lazy execution would be required.

Change History (1)

comment:1 by Claude Paroz, 8 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #26544.

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