I was able to translate the content of the field "Username description in register/edit forms" by going to /admin/config/regional/translate and searching for my custom string. It worked perfectly.

But then, when I try to do the same for the Error Message, the string is nowhere to be found in the translation interface.

Am I missing something?

Comments

Schneck’s picture

It should be translatable since it's handled like the hint-field. The english name description is "Username format is invalid".

mlachance’s picture

Very strange. It seems I can't find it, so I can't translate it.

I go to admin/config/regional/translate/translate and then enter "Username format is invalid" in the "String contains" field. The search gives no result.

I can confirm that the "Error message" in admin/config/people/custom_username_validation is "Username format is invalid".

I am confused. Any idea what might be wrong?

Schneck’s picture

StatusFileSize
new45.72 KB

Really strange, see the attached screenshot. Maybe you do some filtering in the translation interface? Did you try to clean all caches?

mlachance’s picture

No, I had no filtering in the interface.

In the end, I got it working. I had to uninstall the module, then clear every trace of it in the database, and reinstall it again. Now it works. I don't know what was wrong.

Thanks for your kind help!

Schneck’s picture

Status: Active » Closed (cannot reproduce)