Password settings from user_form_process_password_confirm not translated

Created on 17 April 2020, over 4 years ago
Updated 31 January 2023, almost 2 years ago

Password strength and password match texts on user edit always use the default language.
This means that the strings have the wrong translation when editing a user in a language other than the default language.

The default language in the attached screenshot is English.
If the default language was Dutch, the Dutch translation would be used when editing a user in English.

The strings which are passed to the javascript layer are built in the user_form_process_password_confirm() in user.module.
Replacing for example 'confirmTitle' => t('Passwords match:') with 'confirmTitle' => t('Passwords match:')->render() solves the problem but it seems to me that this is not the proper solution.

πŸ› Bug report
Status

Needs work

Version

9.5

Component
User moduleΒ  β†’

Last updated 7 days ago

Created by

πŸ‡§πŸ‡ͺBelgium jurgenr

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024