Hi !

I created an 'mini event' CCK type, with 2 date fields and 2 text fields.
When I create a translation from english to french, the fields are not filled with the source english values (as they are with a regular node translation).

The problem seems to be in translation module, in the 'translation_node_populate_fields' function:

At the line 186 :
$node->$key = $form[$key]['#default_value'] = $source->$key;
For a regular field, $source->$key is a text value.
For a CCK field, it is an array,for instance :

field_description:
Array
(
    [0] => Array
        (
            [value] => Description content
        )
)

Could anyone give me some guidelines to add this feature ?
Must I use a module_invoke on some CCK functions ?
I took a look at the CCK's hook_form and it seems to invoke 'fieldtype_widget' function to get the fieldtype's $form.

Thanks in advance !

Comments

enli’s picture

magnestyuk’s picture

I have the same problem. The issue enli refers to has to do with the translation of field _labels_. This issue regards the _value_ of those fields.

magnestyuk’s picture

This is still bugging me, so I ask, is this an Internationalization issue or a CCK issue?

jose reyero’s picture

Status: Active » Closed (won't fix)

This has been addressed in newer versions (5.x, 6.x) and Drupal 4.7 is not supported anymore. Please, consider upgrading