WordPress.org

Ready to get started?Download WordPress

Forums

HMS Testimonials
[resolved] language visitor form (4 posts)

  1. Ramzii
    Member
    Posted 11 months ago #

    Im planning on updating this plugin. But I need Dutch words at the form.

    Any planning on adding language support or any other solution in keeping my editted file.

    http://wordpress.org/extend/plugins/hms-testimonials/

  2. Jeff K
    Member
    Plugin Author

    Posted 11 months ago #

    Hey Ramzii,

    Adding language support is on my to do list. I will look into adding filters to override the text for a quick solution.

  3. Jeff K
    Member
    Plugin Author

    Posted 11 months ago #

    Hey Ramzii,

    I have just pushed another update (v 2.0.3) that adds filters to the form. Add the filters to your themes functions.php file. If you don't add a filter it will default to Name, Website, Testimonial and Submit Testimonial as it does now.

    You can change the text using the following example code.

    function name_override($text) {
    	return 'Please Enter Your Name';
    }
    function website_override($text) {
    	return 'Enter Your Website Address';
    }
    
    function testimonial_override($text) {
    	return 'Your Review Here';
    }
    function submit_override($text) {
    	return 'Save Review';
    }
    add_filter('hms_testimonials_sc_name', 'name_override');
    add_filter('hms_testimonials_sc_website', 'website_override');
    add_filter('hms_testimonials_sc_testimonial', 'testimonial_override');
    add_filter('hms_testimonials_sc_submit', 'submit_override');

    Jeff

  4. Ramzii
    Member
    Posted 11 months ago #

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.