WordPress.org

Ready to get started?Download WordPress

Forums

WP Customer Reviews
Translation title Submit your review (6 posts)

  1. klangbild
    Member
    Posted 8 months ago #

    Hi where can I edit the title "Submit your review". Could not find any title to change.

    http://wordpress.org/plugins/wp-customer-reviews/

  2. guenfood
    Member
    Posted 8 months ago #

    Hi,

    You must edit the wp-customer-reviews.php
    Find "Submit your review" (line 185) and change with your own text

  3. Jon
    Member
    Posted 7 months ago #

    Hi,
    I tried editing wp-customer-reviews.php line 185

    'leave_text' => 'Submit your testimonial',

    It's still showing up as "Submit your review" on the website though. I tried holding down shift+refresh, and tried from another computer that hasn't viewed the webpage before. I also tried searching through all php, js files in the plugin folder for a match-case on "Submit your review" and can't find it anywhere else that I haven't already edited it.

    Any ideas?

    Thanks,
    Jon

  4. clementine_kruczynski
    Member
    Posted 6 months ago #

    Hi,

    I changed 'leave_text' for something different, fex. leave_textt, then I changed "Submit you review" for my on text. And then I changed line 1085:
    $this->options["leave_text"] for: $this->options["leave_textt"]

    It works.

  5. Wnd
    Member
    Posted 6 months ago #

    You can also use jQuery to translate the text. The advantage of this is that if you update the plugin to a new version, you don't have to change the php files again.

    The only negative part of this solution is that I can't find a way to change the text in the popup when fields doesn't have the correct information.

    It would be awesome if the developer add language support to all the text. Right now you can only change the button text, that's not enough.

    jQuery solution:
    Add this script to a jQuery document that you have included.

    jQuery(document).ready(function(){
    jQuery('#wpcr_commentform label').each(function () {
    	    if (jQuery(this).text() == 'Name: *') {
    	        jQuery(this).text('HERE YOU CAN PUT THE TRANSLATION OF NAME');
    	    }
    	    else if (jQuery(this).text() == 'Email: *') {
    	        jQuery(this).text('HERE YOU CAN PUT THE TRANSLATION OF EMAIL');
    	    }
    	    else if (jQuery(this).text() == 'Rating:') {
    	        jQuery(this).text('HERE YOU CAN PUT THE TRANSLATION OF RATING');
    	    }
    	    else if (jQuery(this).text() == 'Review:') {
    	        jQuery(this).text('HERE YOU CAN PUT THE TRANSLATION OF REVIEW');
    	    }
    	    else if (jQuery(this).text() == 'Check this box to confirm you are human.') {
    	        jQuery(this).text('HERE YOU CAN PUT THE TRANSLATION OF THE SPAM CHECKBOX');
    	    }
    	});
    	jQuery('#wpcr_postcomment').text('HERE YOU CAN PUT THE TRANSLATION OF ADD REVIEW');
    	jQuery('#wpcr_check_confirm').text('HERE YOU CAN PUT THE TRANSLATION OF REQUIRED FIELDS');
    
    	jQuery('#wpcr_button_1').click(function(){
    		if (jQuery(this).text() == 'Click here to hide form') {
    	        jQuery(this).text('HERE YOU CAN PUT THE TRANSLATION OF THE BUTTON HIDE THE FORM');
    	    }
    	    else{
    	    	jQuery(this).text('HERE YOU NEED TO PUT THE TRANSLATION OF THE BUTTON TO SHOW THE FORM, TO MAKE THE HIDE AND SHOW BUTTON WORK');
    	    }
    	});
    });
  6. Bauritius
    Member
    Posted 5 months ago #

    Hi guys,

    I have a question about this:
    What about translating --> "click here to hide form" AND the bold "submit your review" ??

    I have translated everything (works fine) but can't find those two parts.
    Anyone?
    Thanks!

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.