I’ve modified recaptcha-v2.php file, replaced
function iqfix_recaptcha_validation( $result, $tag ) {
$tag->name = 'recaptcha';
if( ! isset( $_POST['g-recaptcha-response'] ) ) {
$result->invalidate(
$tag,
esc_html__( 'wpcf7-recaptcha: Could not verify reCaptcha response.', 'wpcf7-recaptcha' )
);
} else if( empty( $_POST['g-recaptcha-response'] ) ) {
$result->invalidate(
$tag,
esc_html__( 'Patikrinkite, ar nesate robotas.', 'wpcf7-recaptcha' )
);
}
return $result;
}
with
function iqfix_recaptcha_validation( $result, $tag ) {
$tag->name = 'recaptcha';
if( ! isset( $_POST['g-recaptcha-response'] ) ) {
$result->invalidate(
$tag,
esc_html__( 'wpcf7-recaptcha: Could not verify reCaptcha response.', 'wpcf7-recaptcha' )
);
} else if( empty( $_POST['g-recaptcha-response'] ) ) {
if (get_locale() == 'lt_LT') {
$result->invalidate(
$tag,
esc_html__( 'Patikrinkite, ar nesate robotas.', 'wpcf7-recaptcha' )
);
} else {
$result->invalidate(
$tag,
esc_html__( 'Please verify that you are not a robot.', 'wpcf7-recaptcha' )
);
}
}
return $result;
}
Not the best solution but it’ll work for now.
Waiting for new feature with adding error message to the messages tab)
Thanks for response!