Programmatically add node translation drupal 7 ( Entity translation ) I need to create multilingual node programmatically in Drupal with entity_translation.

No problem to create the node, but I have no idea how can I create the translation ( + field translated).

I don't want to create another node, just translate it (same nid).

My language is FR , I need translation in EN and DE.
Found the answer ! Thanks to my co worker.

In order to add translation to a node you need to add every translatable field like this in your creation node code :

 $node-&gt;field_trailer['fr'][0]['value'] = $movie['link'];  
 $node-&gt;field_trailer['de'][0]['value'] = $movie['link'];  
 $node-&gt;field_trailer['en'][0]['value'] = $movie['link'];


And after node_save($node); add 

  node-&gt;translations-&gt;data['de']['entity_type'] = 'node'; 
  $node-&gt;translations-&gt;data['de']['entity_id'] = $node-&gt;nid;
  $node-&gt;translations-&gt;data['de']['language'] = 'de'; 
  $node-&gt;translations-&gt;data['de']['source'] = 'fr';   
  $node-&gt;translations-&gt;data['de']['uid'] = $node-&gt;uid;  
  $node-&gt;translations-&gt;data['de']['status'] = $node-&gt;status; 
  $node-&gt;translations-&gt;data['de']['translate'] = 0; 
  $node-&gt;translations-&gt;data['de']['created'] = $node-&gt;created; 
  $node-&gt;translations-&gt;data['de']['changed'] = $node-&gt;changed;


For each language and the node_save($node) again.