translation_node_get_translations() bug? I have a multilingual site and I need to know which nodes are the translation of the current one; I use translation_node_get_translations(), but it seems it doesn't work.

I have 2 nodes (node/17 and node/670) where the latter is the translation of the former.

If I call translation_node_get_translations(17), I get an array with 2 elements referring to the nodes with ID equal to 17 and 670; if I call translation_node_get_translations(670), I get an empty array.

Is that a bug, or do I have to differently retry this information?
I found the solution: Calling translation_node_get_translations(), I have to provide the tnid (the node ID of the original node) as parameter, not nid, as nodes are translated by the node ID of the original node.

function _azzurra_get_translations_nids($node){
  $nodes = translation_node_get_translations($node-&gt;tnid);  

  $nids = array();
  foreach($nodes as $value){
    $nids[] = $value-&gt;nid;
  }

  return $nids;
}


I wrote this function who return a list of all nids related to the argument node [included the nid of the argument node.. ]