• I see here https://translate.wordpress.org/projects/wp-plugins/yet-another-stars-rating/dev/de/default?page=9 that many strings of YASR are already translated.

    In the WordPress back-end I can read many items of YASR in German. But is there also a possibility to translate strings showed to the visitors in the front end? Especially the Custom text to display BEFORE Visitor Rating and Custom text to display AFTER Visitor Rating I would like to see translated on my website in foreign language.

    I am using the WPML-Plugin for translation. Is it possible to translate the strings to WPML?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor dudo

    (@dudo)

    Hi,

    mmmh, no, that string can’t be translated, the only solution is to hardcode the shortcode in the template with the text that you want to insert and translate

    Thread Starter Benuzar

    (@benuzar)

    Can you please describe what I have to do to hardcode the template? What file I have to do change?

    Plugin Contributor dudo

    (@dudo)

    It should be the single.php file of your template, you’ve to insert this code:

    `<?php _e(‘YOUR TEXT HERE’, ‘yet-another-stars-rating’); echo(do_shortcode(“[yasr_overall_rating”)); ?>

    Beware: you should create a child theme before do this, or everytime you update the theme you will lost all your changes. Further, if you never did this before, I suggest to ask to a developer to do this

    Best,
    Dario

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘String translation for WPML’ is closed to new replies.