SPPB 5.1.4 Optin addon translation - Forum | JoomShaper
Staff replied SP Page Builder

SPPB 5.1.4 Optin addon translation

Asked by Pascal Wickert 3 years ago Last activity 2 years ago

Hello,

I am using the optin addon for subscription in SendinBlue (Brevo) newsletter. Everything is working well. However. I have a bilingual web site (English / French), so I need to translate the inline field label and all error message. I found and translated almost everything thanks to Joomal language override. However I did not find the error message when fields are empty and when the check box is not checked (privacy statement).

Please fill out this field.
Please check this box if you want to proceed.

Where can b I find those error messages to translate them?

Thank you

5 replies

Ofi Khan Staff

Hello Pascal Wickert

Please override this language string:

JLIB_FORM_FIELD_REQUIRED_VALUE

It will change this text Please fill in this field

Then use this JavaScript code to

Template Options -> Custom Code -> Custom CSS

jQuery(function($){
  $(".sppb-form-check-input").attr("oninvalid","this.setCustomValidity('your custom message')");
});

It will change this text Please check this box if you want to proceed

Best regards

Pascal Wickert Asked this

Hello Ofi,

Unfortunately, the language overrides for is not working. This constant exists only in the admin side, not on the site side. Furthermore. Exploring more in depth issues, I realized that those messages are sent by the browser. This is not a good thing for us. Indeed, we are a bilingual institution and sometimes people are working in a computer where the default language is English but still want to navigate on the French site and therefore they get English error messages. It would be preferable to have a string of this in the language file (INI).

Thank you,

Pascal

Ofi Khan Staff

Sorry, we do not provide customization support. I can't help you further on this topic.

Pascal Wickert Asked this

Fair enough Ofi,

Thank you

Ofi Khan Staff

You are welcome 😊

Thanks for understanding.

Log in to reply.