• tpo

    (@topod)


    Hello!

    I use Loco Translate and I translated the string “Phone number must be numbers only” into another language even after synchronizing the translations. However, it does not appear on the frontend. Why? How can I translate this text string?

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tpo

    (@topod)

    So far, I’ve done that in the ../includes/phone-text.php file on line 127 instead of this one:
    $result->invalidate( $tag, __('Phone number must be numbers only', 'nb-cpf') );

    put this:
    $result->invalidate( $tag, wpcf7_get_message( 'invalid_tel' ) );

    This will show me the standard translated message from Contact Form 7. I realize that this change will be lost in the next update, but it’s at least for now until another solution is found.

    Plugin Author Narinder Singh

    (@narinderbisht)

    Hello @topod,
    Greetings!!
    Thank you for using the plugin. Are you using any language translation plugin (WPML etc)?
    Plugin have .po file. I think it should be auto translate. Kindly let me know, which plugin you are using for translation.
    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to translate “Phone number must be numbers only”’ is closed to new replies.