Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    #1468683

    Hey 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,
    Ismael

    #1468713

    Hey 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.

    #1468758

    Hi,

    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,
    Ismael

    #1468777

    Thank 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.

    #1468886

    Hi,

    We have forwarded the issue to our channel. The translations should be included in the next patch.

    Thank you for your patience.

    Best regards,
    Ismael

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Translate reCaptcha message’ is closed to new replies.