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.

Command icon 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

siemen_hermans created an issue. See original summary.

siemen_hermans’s picture

StatusFileSize
new14.06 KB

Providing a patch for version 4.0.x

kristen pol’s picture

Version: 4.0.0 » 4.0.x-dev
Status: Active » Needs work

Thanks for the issue and patch.

There are formatting issues. Please run this against the Drupal code style checker.

Diwakar07 made their first commit to this issue’s fork.

diwakar07’s picture

Status: Needs work » Needs review

Added missing t() function and tested the file through phpcs.
Please review the MR.

mably’s picture

Are you really sure that you need to translate strings here?

It works fine in french as is.

All strings are already available for translation.

sourav_paul’s picture

Issue summary: View changes
StatusFileSize
new483.14 KB
new166.73 KB

@Diwakar07 I've checked the password policy translation in Spanish & french

Its working fine...

No need to add t() translation...

french translation :
1:
fr

2: Only local images are allowed.

Spanish translation:
es

UI translation settings SS:

Only local images are allowed.

sourav_paul’s picture

Status: Needs review » Closed (works as designed)

Closing this ticket as it works as designed...