This thread is over two years old and may be outdated. Please create a new thread if you need help, or email us if you have an active Premium license.

SiteOrigin Contact Form Widget – Translate error messages

5 years ago · Last reply by Andrew Misplon 5 years ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

3
  1. Andrew Misplon Staff 5 years, 9 months ago

    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. tom rhodes 5 years, 9 months ago

    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. Andrew Misplon Staff 5 years, 9 months ago

    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.

Have a different question or issue?

Start New Thread