Here's a patch for fivestar_field.inc that makes more stuff translatable.

CommentFileSizeAuthor
fivestar_field_inc_translation.patch1.79 KBhenrrrik

Comments

Muskwa’s picture

Hi,

Is it possible to translate also "Give it x/5" alternate texts when hovering the stars?

Could you please tell me what I should do with this .patch file to make it work? I haven't a clue what to do with it to incorporate to drupal... :(

Thanks a lot!

henrrrik’s picture

The "Give it" string is located in the JavaScript and hence isn't properly translatable in Drupal 5 (version 6 solves this problem).
You can change the string directly in the .js file, but you would need to redo it every time Fivestar is updated.

You can find information about applying patches here: http://drupal.org/patch/apply

anders.fajerson’s picture

Those strings should probably be moved to the rendered HTML form and then picked up by the JavaScript.

henrrrik’s picture

Status: Active » Needs review
quicksketch’s picture

Status: Needs review » Fixed

Thanks henrrrik! Applied to 5.x CVS. It'll be in the next release. fajerstarter, you're right the "Give it..." string should be translated by PHP then passed to javascript. This sounds like a good opportunity to revisit http://drupal.org/node/137193.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.