Viewing 1 replies (of 1 total)
  • Thread Starter miguelcortereal

    (@miguelcortereal)

    Ok I got it. It was intended to use parameters and then use what ever each one wants to use.

    So a possible way to have the shortcode output translated, is by applying this code technique at the template:

    <?php // Average rating and reviews count
    	echo do_shortcode('[reviews var="'.__('review', 'themetextdomain').'", pre="'.__(' based on ', 'themetextdomain').'"]'); ?>

    In a future release it would be nice to have options at admin to fill these variables.

Viewing 1 replies (of 1 total)
  • The topic ‘Make review word translatable for shortcode’ is closed to new replies.