Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi,

    Try to install the Loco Translate plugin, if not already installed. You should first sync the strings and then translate them. It should function without any issues.

    Thread Starter kirnata

    (@kirnata)

    Hi!
    It doesn’t work, unfortunately. This hook also didn’t work:

    add_filter(‘gettext’, ‘translate_text’);
    add_filter(‘ngettext’, ‘translate_text’);
    function translate_text($translated) {
    $translated = str_ireplace(‘Your comment here…’, ‘Оставьте ваш комментарий здесь’, $translated);

    return $translated;
    }

    Hi,

    Please try to add the below code in functions.php file of your child theme and check.

    function my_comment_placeholder_text() {
    $text = __( 'MY TEXT', 'oceanwp' );
    return $text;
    }
    add_filter( 'ocean_comment_placeholder', 'my_comment_placeholder_text' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘comments form not translated’ is closed to new replies.