Hi,
I cant find the strings in the register dialog to translate: the word "required" and the error message "Please fill in this field".
I tried to add them in Phrases, tried to add them to the .pot file, doesnt work.
Where are they defined?
Thanks,
Stephan
Hi,
the error message "Please fill in this field".
This depends on the browser language.
Regarding the "required" fields, could you please provide information on how those fields were added? They don't appear to belong to the core wpForo plugin.
OK, as @sofy wrote, it depends on the browser language.
But why? I found the reason. Although the site is in french, wpforo is in french, this message appears in english because my browser (and my system) is in english.
The sentence "Please fill in this field." is an HTML5 feature and can't be easily customised* and will appear in whatever language the browser is set to which is weird IMHO.
I just wanted to make sure the customer will not see english messages and I can explain her why if it ever happens.
*it can be customised using a lot of JS:
https://www.telerik.com/blogs/building-html5-form-validation-bubble-replacements
or by using the setCustomValidity JS method, but you'll have to check all validity codes.
Usually form validation is handled by javascript or XHR, first time I see it handled directly by HTML5 in code I manage.
Kind of went down the rabbit hole to find why, now I can get back to work.
Thanks to @sofy for the help!