Is there any easy way to change the text that appears on a fivestar widget? i.e. Average and Your Rating. For the static display, this is not a problem as it can be done by overriding theme_fivestar_static_element, but I cannot find a function for the 'live' widget.

Comments

turco’s picture

You can change it by "localization". I use it in Turkish and I can change these words

eeyorr’s picture

It's in theme_fivestar_summary.

davemybes’s picture

Title: Is it possible to change the words "Average" and "Your rating"? » Change the words "Average" and "Your rating" (above the stars)?
Category: support » feature

Thanks for the tips. I might have to go the localization route, which is a bit of a pain, because I have a multisite setup. That means I have to modify each site. A theme function would be nicer and easier. The theme_fivestar_summary code only changes the text below the stars and not the text above them (which is what I want to change). I'm pretty sure there's no theme function for that text, as I had to modify the module code to get it to change. Guess I'll have to make this a feature request then :)

quicksketch’s picture

Status: Active » Closed (duplicate)

It's already a feature request (please search before posting): http://drupal.org/node/203162

However, you can also use the string overrides module if you don't want to the entire locale module.

davemybes’s picture

My apologies for the duplicate feature request. I did search before, but I see now that the title of the previous request is truncated, so it doesn't show the important bits. Anyway, no worries, I'll keep an eye on the other issue queue. Thanks for the tip on string overrides - that's one useful module!