Hi,
I’m having trouble finding where the strings that populate the errors/warnings on the contact form widget come from. I’ve looked in the theme (Vantage) pot file, and in /wp-content/plugins/so-widgets-bundle/lang/so-widgets-bundle.pot. I can’t see a file to translate in /wp-content/plugins/so-widgets-bundle/widgets/contact either. I looked in the js file too but they aren’t in there, and whilst inspecting the markup I can’t see the messages in there so I think they are beign generated by some javascript in the page that isn’t in the widget’s js folder?
I’d like to safely override these in some way in the child theme somehow so an update to the widget and/or the parent theme doesn’t break the translations.
Cheers, thanks for an incredible suite of wordpress stuff, the siteorigin stuff is first class.
Tom.
Hi Tom
Thanks for reaching out.
Within the contact form, you can edit each field and open the Required Field section. There you can adjust the Missing message.
Hi Andrew,
Thanks for the response, I’ve edited all the Missing Message text and that works great, what I’m looking for is where the string that populates the tooltip/hint overlay for the email field comes from. If I submit the form and the email field has no @ I get a message in english saying “Please include an @ in the email address. {email field value} does not contain an @”. It’s not a biggie as the Missing Message and everything else is in the right language but it’s bugging me all the same ;)
Cheers, Tom.
Hi Tom
I’m glad to hear you’re making progress.
You could use a plugin like Loco Translate to translate the SiteOrigin Widgets Bundle and locate the string in question and translate it accordingly.