Viewing 7 replies - 1 through 7 (of 7 total)
  • There are two methods:

    1 Change the text in the core files:
    * Search an replace text in frontend_review_form.html in the folder wp-customer-reviews\include\templates
    * deactive and reactive the plugin
    You will loose the changes when you update the plugin

    2. Change text with Javascript:
    If you have jquery support (if not add in the head)
    Add custom js in your footer:
    $(“div.wpcr3_button_1.wpcr3_show_btn”).text(‘YOUR NEW CREATE A REVIEW TEXT’);

    Thread Starter Anouk

    (@anouk0693)

    Great, that worked! Thank you

    gnorf

    (@gnorf)

    Good tip, thanks!

    bmiller92

    (@bmiller92)

    For everyone who wants to translate this plugin here is the correct jquery solution based on ‘frankwp3’s comment (thanks for pointing it out!)

    jQuery(document).ready(function(){
    	jQuery("div.wpcr3_button_1.wpcr3_show_btn").text('put-text-here'); //Submit your review
    	jQuery(".wpcr3_review_form_rating_field label.comment-field").text('put-text-here'); //Star lable
    	jQuery(".wpcr3_review_form_review_field_label label.comment-field").text('put-text-here'); //Review Box
    	jQuery(".wpcr3_check_confirm label").text('put-text-here'); //Checkbox for confirmation
    	jQuery("div.wpcr3_button_1.wpcr3_submit_btn").text('put-text-here'); //Submit button
    	jQuery("div.wpcr3_button_1.wpcr3_cancel_btn").text('put-text-here'); //Cancel button
    	jQuery("span.wpcr3_aggregateRating_overallText").text('put-text-here'); //Avarage rating
    	jQuery("span.wpcr3_aggregateRating_reviewCount").text('put-text-here'); //Number of reviews lable
    });

    Hope they will add proper language support with .po-files.

    vbdeco

    (@vbdeco)

    Hi bmiller92,

    Could you (or somebody else) detail the solution you suggest? I’m newbie from France.

    Maybe you got a link that explain that ?

    Regards.

    JC

    bmiller92

    (@bmiller92)

    Hey vbdeco,

    I’m not an expert either, and after some days i found out that the solution i wrote has some bugs in it, like the checkbox disappearing (that’s fixable) and some others too. So i don’t really recommend using it in it’s state but it is a good starting point for everyone.

    What i do recommend, and what i did too is editing the template files, then disable the plugin on the admin page, then re-enable it so it refreshes the plugin with the edits you make. You do lose these edits if the plugin updates itself! So just be careful.

    Have a nice day!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Translate plugin’ is closed to new replies.