Active
Project:
In-place translation
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2010 at 11:40 UTC
Updated:
12 Aug 2010 at 18:10 UTC
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
Comment #1
drupalok commentedI dont have to create a translated node for this, right?
Comment #2
angeloo commentedi investigate a little the problem seems to be that for main node (main language), tnid is not saved.
Right?
Comment #3
angeloo commented.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'];
}