Problem/Motivation
Certain texts in the validation messages weren't wrapped in t() functions and as such are missing translations.
Proposed resolution
Wrap the strings in t() functions, so translations can be provided.
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | Screenshot from 2024-06-10 12-47-13.png | 166.73 KB | sourav_paul |
| #8 | Screenshot from 2024-06-10 12-26-09.png | 483.14 KB | sourav_paul |
Issue fork password_policy-3399824
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
siemen_hermans commentedProviding a patch for version 4.0.x
Comment #3
kristen polThanks for the issue and patch.
There are formatting issues. Please run this against the Drupal code style checker.
Comment #6
diwakar07 commentedAdded missing
t()function and tested the file throughphpcs.Please review the MR.
Comment #7
mably commentedAre you really sure that you need to translate strings here?
It works fine in french as is.
All strings are already available for translation.
Comment #8
sourav_paul@Diwakar07 I've checked the password policy translation in Spanish & french
Its working fine...
No need to add t() translation...
french translation :

1:
2:
Spanish translation:

UI translation settings SS:
Comment #9
sourav_paulClosing this ticket as it works as designed...