Home>Support>SiteOrigin Contact Form Widget – Translate error messages

SiteOrigin Contact Form Widget – Translate error messages

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

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.

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 5 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    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.

  2. 5 years, 1 month ago tom rhodes

    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.

  3. 5 years, 1 month ago Andrew Misplon
    Hi, I Work Here

    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.

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More