-
AuthorPosts
-
October 8, 2024 at 9:39 pm #1468677
When using macOS and Safari, this comes up in a form just loading the page. Probably because of Private Relay.
This contact form is deactivated because you refused to accept Google reCaptcha service which is necessary to validate any messages sent by the form.
That comes from Enfold? I need to translate it.
October 9, 2024 at 5:23 am #1468683Hey peterolle,
Thank you for the inquiry.
Are you using a multi-language plugin like WPML or Polylang? The string should automatically translate to the active language, but if you need to change it, you can use the avf_contact_form_recaptcha_disabled_msg filter. Here’s an example:
function avf_custom_recaptcha_disabled_msg( $msg ) { $custom_msg = __( 'The contact form is disabled because you did not consent to Google reCaptcha.', 'avia_framework' ); return $custom_msg; } add_filter( 'avf_contact_form_recaptcha_disabled_msg', 'avf_custom_recaptcha_disabled_msg' );
Best regards,
IsmaelOctober 9, 2024 at 9:31 am #1468713Hey Ismael.
No translation plugins at all. The site is in Spanish and the message shows in English, that is the problem. Can you please try that settings to see if it is a bug?
Thank you.
October 10, 2024 at 4:38 am #1468758Hi,
Thank you for the info.
It seems the string or text is missing from the language files (es_ES.po file, line 29157). As a temporary solution, you can install the Loco Translate plugin and manually add the translations.
Line 29157 of the es_ES.po file:
#: framework/php/class-form-generator.php:509 msgid "" "This contact form is deactivated because you refused to accept Google " "reCaptcha service which is necessary to validate any messages sent by the " "form." msgstr ""
You can also use the filter that we provided above to directly translate the text.
Best regards,
IsmaelOctober 10, 2024 at 8:56 am #1468777Thank you for confirming Ismael.
It is ok, I can wait for the next update. It is a problem that macOS users are blocked with no options when having Private Relay on, hopefully you consider adding Turnstile sooner, which is way better for spam.
You can mark this as solved.
October 11, 2024 at 4:29 am #1468886 -
AuthorPosts
- The topic ‘Translate reCaptcha message’ is closed to new replies.