I activated the inplace translation for node title
i get an extra field for the (german) translation
i enter the german translation
i save
i only see the english original text
i edit the node again and see, that the translation is overwritten by the original
even when i change the node title only in the original it will be overwritten to the translation
any ideas?
thanks!

Comments

drupalok’s picture

I dont have to create a translated node for this, right?

angeloo’s picture

i investigate a little the problem seems to be that for main node (main language), tnid is not saved.

Right?

angeloo’s picture

.module file

line 117, after "// Populate translations" add:
if(!$node->tnid){
$node->tnid = $node->nid;
}

line 155, after "// Delete translations" add:
if(!$node->tnid){
$node->tnid = $node->nid;
}

line 305 add:

if(!isset($form['tnid']['#value'])){
$form['tnid']['#value'] = $form['nid']['#value'];
}