Popover Error Message Translation - Just Shown In Spanish - Question | JoomShaper
Black Friday sale is live with flat 50% OFF. Sale ends soon! Grab your deal now!

Popover Error Message Translation - Just Shown In Spanish

M

Miguel

SP Page Builder 4 years ago

Hi. I've created a contact form with the Form Builder included with SP Page Builder Pro. My website is defined in four languages (the main is Spanish). When I include the contact form in a SP Page Builder page with a different language (Catalan, English or German) I can't translate the error message text that appears at the Popover when the submit button is pressed and a mandatory field is not informed. The popover shows the message "Completa este campo" (in Spanish). I have the same problem for the mandatory checkbox, in that case the message is "Selecciona esta casilla de verificación si quieres continuar", and same problem for email validation. It seems that all Popover error messages for mandatory fields are shown just in Spanish. I've been searching for these messages values at the overrides section but I can't find it. The "Required Field Error Message" is informed and it's shown properly under the mandatory fields (I thought it was the text used for the Popover messsages). Do you know where can I translate those messages? Thank you for your support.

0
5 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 4 years ago #37465

Hello Miguel

Please use this JavaScript to Template Options -> Custom Code -> Custom JavaScript

jQuery(function($){
  $(".sppb-form-control").attr("oninvalid","this.setCustomValidity('Συμπληρώστε αυτό το πεδίο')");
});

This is just an example text. You need to use 4 templates for 4 languages. Then in each template, use this JavaScript and change this Συμπληρώστε αυτό το πεδίο message to that language. Hopefully, it will solve your issue.

Best regards

0
M
Miguel
Accepted Answer
4 years ago #37467

I would try this but currently I'm using just one template for all languages (in order to reduce maintenance). Is there any option? including this code at level page or something like that? Or modifying any template file without the need to duplicate it for each language? Thanks for your response.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 4 years ago #37611

Sorry, there is no other option to do this. You can translate for one language. But to do this for multi languages, you need to duplicate the templates.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 4 years ago #37627

OR... You can use 4 phrases inside one after comma or "|" - maybe not perfect - but people can read.

OR You can use above code inside HDAnycode module - 4x versions - and use on selected language sites.

0
Paul Frankowski
Paul Frankowski
Accepted Answer
Senior Staff 2 years ago #128257

NEW ESPANIOL UPDATE

Here is almost complete SPANISH translation for SP Page Builder 5.0.9+

  1. Download file : Spanish_SPPB_50x_UNZIP.zip
  2. Uzip file
  3. Use FTP tool or File Manager from cPanel and upload or override languages file. Maintain folder structure as it was.
  4. It will work if you have enabled Spanish language for Joomla itself.

It contains Contact addon translation as well.
It will work in Joomla 4.x and older Joomla 3.10
0