Support » Plugin: Instant Comment Validation » Possibility of message translation

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Mrinal Kanti Roy


    Hi Michal,

    Sorry for the late reply, I just saw it.

    Using .text() function we can replace the default error texts.

    I know I can add that option in WordPress admin, but it’ll take more space. As we can do it easily with jQuery, why we should go with complex!

    Let me know your website url, so I can help you with jQuery part.

    Hi Mrinal,

    thanks for your help. I already fixed it by crating copy of your plugin with messages in my language.


    Plugin Author Mrinal Kanti Roy


    Hi Michal,

    Glad to know that you’d a fix yourself in your way. By the way, the jQuery fix should be like the following:

      $(".comment-form-author div.error").text("Your Name Please");
      $(".comment-form-email div.error").text("Your Email Please");
      $(".comment-form-comment div.error").text("Your Comments Please");

    Hope this will help others, Cheers!

    Hello guys!

    It’s not working for me.
    I inserted the above code in bottom of my footer (before closing body tag), and translations don’t work.

    Any ideas?



    I managed with the translation problem this way:

    @ theme “functions.php”

    function override_instant_comment_validation_script() {
       // deregister original script
       wp_deregister_script( 'commentvalidation' );
       // with my own script
       wp_enqueue_script('commentvalidation', get_template_directory_uri() . '/plugins/instant-comment-validation/instant-comment-validation.js', array('jquery','jqueryvalidate'));
    add_action('wp_footer', 'override_instant_comment_validation_script');

    # I made copy of original “instant-comment-validation.js” file inside THEME_DIRECTORY/plugins/instant-comment-validation/

    @ “THEME_DIRECTORY/plugins/instant-comment-validation/instant-comment-validation.js”
    here you can change whatever you want

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Possibility of message translation’ is closed to new replies.