Title: String translation for WPML
Last modified: January 8, 2019

---

# String translation for WPML

 *  [Benuzar](https://wordpress.org/support/users/benuzar/)
 * (@benuzar)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/string-translation-for-wpml/)
 * I see here [https://translate.wordpress.org/projects/wp-plugins/yet-another-stars-rating/dev/de/default?page=9](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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fstring-translation-for-wpml%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/string-translation-for-wpml/#post-11069614)
 * 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](https://wordpress.org/support/users/benuzar/)
 * (@benuzar)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/string-translation-for-wpml/#post-11083715)
 * Can you please describe what I have to do to hardcode the template? What file
   I have to do change?
 *  Plugin Contributor [dudo](https://wordpress.org/support/users/dudo/)
 * (@dudo)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/string-translation-for-wpml/#post-11086653)
 * 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.

 * ![](https://ps.w.org/yet-another-stars-rating/assets/icon-256x256.png?rev=1525329)
 * [YASR - Yet Another Star Rating Plugin for WordPress](https://wordpress.org/plugins/yet-another-stars-rating/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/yet-another-stars-rating/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/yet-another-stars-rating/)
 * [Active Topics](https://wordpress.org/support/plugin/yet-another-stars-rating/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/yet-another-stars-rating/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/yet-another-stars-rating/reviews/)

## Tags

 * [language](https://wordpress.org/support/topic-tag/language/)
 * [strings](https://wordpress.org/support/topic-tag/strings/)

 * 3 replies
 * 2 participants
 * Last reply from: [dudo](https://wordpress.org/support/users/dudo/)
 * Last activity: [7 years, 4 months ago](https://wordpress.org/support/topic/string-translation-for-wpml/#post-11086653)
 * Status: not resolved