• davidlambda

    (@davidlambda)


    Hello

    When trying to press the Send button on the forms several times, the messages are displayed with translations that do not correspond to the current language of the page.

    The language I need to set by default is Spanish. There are 4 languages available: Spanish, English, French and Portuguese.

    What could be the error?

    I have everything updated to the latest versions: theme, plugins and WordPress version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • add_filter( 'wpcf7_form_hidden_fields', 'add_lang_wpcf7_hidden_fields' );
    function add_lang_wpcf7_hidden_fields( $fields ) {
    if ( function_exists( 'pll_current_language' ) ) {
    $fields['lang'] = pll_current_language();
    }

    return $fields;
    }
    Plugin Author Andreas Münch

    (@andreasmuench)

    @davidlambda Did you check if your form messages are either translatible with {curly braces} in the string translations or if they are the english default messages which are being translated automatically?
    To make this easier to check I added a new feature in the latest plugin version which should show you a message in the form edit screen. Also it adds a button to reset the messages if they are not translatable.

    If that doesn′t help, feel free to come back and give feedback.

    @stepanwp Thanks, but I don′t think this will help

    @stepanwp this helps me, thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.