sepiariver / recaptchav2

Google's ReCaptcha V2 + V3 for MODX CMS: https://sepiariver.com/modx/recaptchav2-supports-recaptchav3/
https://sepiariver.com/
GNU General Public License v2.0
21 stars 15 forks source link

Error message lang #12

Closed lawebfabric closed 7 years ago

lawebfabric commented 7 years ago

Hi, Is there a way to change the error message language ? Thanks in advance.

bYemma commented 7 years ago

A little bit late, but here is the answer: Add a new option in the system settings with name _recaptcha_errormessage and the content is the error message.

For the tech error the key is _technical_errormessage.

You find that in recaptchav2-Snippet: $tech_err_msg = $modx->getOption('technical_error_message', $properties, 'Sorry, there was an error submitting your form. Please use one of the contacts on this page instead.'); $recaptcha_err_msg = $modx->getOption('recaptcha_error_message', $properties, 'Please select the checkbox in the ReCaptcha image.');

lawebfabric commented 7 years ago

Thanks but I found it it by myself.