Programmatically add node translation I am using i18n module. How can I programmatically create node translation?
// Define which node is the source, this node has his own id as translation nid (tnid)
$source_node = node_load($source_nid);
$source_node-&gt;tnid = $source_nid;
node_save($source_node);

$new_node_in_a_other_language = new stdClass();
$new_node_in_a_other_language-&gt;type = 'your_type';
node_object_prepare($new_node_in_a_other_language);
$new_node_in_a_other_language-&gt;title    = 'title fr';
$new_node_in_a_other_language-&gt;language = 'fr';
// define source tnid   
$new_node_in_a_other_language-&gt;tnid = $source_nid;
node_save($new_node_in_a_other_language);