--- fivestar.module	2012-05-21 17:17:09.000000000 +0200
+++ fivestar-editted.module	2013-01-28 12:16:15.476146000 +0200
@@ -206,7 +206,8 @@
  */
 function fivestar_get_votes($entity_type, $id, $tag = 'vote', $uid = NULL) {
   global $user;
-
+  $br_node = node_load($id);
+  $id = $br_node->tnid ? $br_node->tnid : $id;
   if (!isset($uid)) {
     $uid = $user->uid;
   }
@@ -269,6 +270,8 @@
     $uid = $GLOBALS['user']->uid;
   }
 
+  $br_node = node_load($id);
+  $id = $br_node->tnid ? $br_node->tnid : $id;
   $access = module_invoke_all('fivestar_access', $entity_type, $id, $tag, $uid);
   foreach ($access as $result) {
     if ($result == TRUE) {
@@ -304,6 +307,9 @@
  *   modules return NULL, stating no preference, then access will be denied.
  */
 function fivestar_fivestar_access($entity_type, $id, $tag, $uid) {
+  
+  $br_node = node_load($id);
+  $id = $br_node->tnid ? $br_node->tnid : $id;
   // Check to see if there is a field instance on this entity.
   $fields = field_read_fields(array('module' => 'fivestar'));
   foreach($fields as $field) {
@@ -378,7 +384,10 @@
  *     to "vote".
  */
 function fivestar_custom_widget($form, &$form_state, $values, $settings) {
-  $form = array(
+    
+  $br_node = node_load($settings['content_id']);
+  $settings['content_id'] = $br_node->tnid ? $br_node->tnid : $settings['content_id'];
+    $form = array(
     '#attributes' => array(
       'class' => array('fivestar-widget')
     ),
@@ -411,7 +420,10 @@
  * Submit handler for the above form (non-javascript version).
  */
 function fivestar_form_submit($form, &$form_state) {
+  
   // Cast the vote.
+  $br_node = node_load($settings['content_id']);
+  $settings['content_id'] = $br_node->tnid ? $br_node->tnid : $settings['content_id'];
   _fivestar_cast_vote($form_state['settings']['content_type'], $form_state['settings']['content_id'], $form_state['values']['vote'], $form_state['settings']['tag']);
 
   // Set a message that the vote was received.
@@ -427,6 +439,9 @@
  * AJAX submit handler for fivestar_custom_widget
  */
 function fivestar_ajax_submit($form, $form_state) {
+  
+  $br_node = node_load($settings['content_id']);
+  $settings['content_id'] = $br_node->tnid ? $br_node->tnid : $settings['content_id'];
   _fivestar_update_field_value($form_state['settings']['content_type'], $form_state['settings']['entity'], $form_state['settings']['field_name'], $form_state['settings']['langcode'], $form_state['values']['vote']);
   $votes = _fivestar_cast_vote($form_state['settings']['content_type'], $form_state['settings']['content_id'], $form_state['values']['vote'], $form_state['settings']['tag']);
 
