How to migrate to translatable fields I am using the latest Entity Translation module in order to provide a couple of translatable fields for some of my content types. I have a content type which has a translatable field which is called "title_field".

I am using the Migrate module (version 2.0) in order to fill in the Drupal scheme with data from an old database. Normally, in a single language, the line would be:

$this-&gt;addFieldMapping('title_field','name')


Now the problem is that I have two translations of this field in my old database, which I want to create through the migration API. 

$this-&gt;addFieldMapping('title_field','name_el')-&gt;arguments(array('language','el'));
$this-&gt;addFieldMapping('title_field','name_en')-&gt;arguments(array('language','en'));


Unfortunately this last one does not work. Any idea how I can go further with this?
I solved the problem by first doing the field translation manually for one node, and then using Node Export to see the actual code describing the node.
Finally, I used the prepare function of the Migrate api to do the work manually.

function prepare($entity, stdClass $row){

    $entity-&gt;language = 'el';       
    $entity-&gt;title_field['el'][0]['value'] = $row-&gt;name;
    $entity-&gt;title_field['en'][0]['value'] = $row-&gt;name_en;
    $entity-&gt;translations = (object) array(
                    'original' =&gt; 'el',
                    'data' =&gt; array(
                            'el' =&gt; array(
                                    'entity_type' =&gt; 'node',
                                    'entity_id' =&gt; $entity-&gt;nid,
                                    'language' =&gt; 'el',
                                    'source' =&gt; '',
                                    'uid' =&gt; '0',
                                    'status' =&gt; '1',
                                    'translate' =&gt; '0',

                            ),
                            'en' =&gt; array(
                                    'entity_type' =&gt; 'node',
                                    'entity_id' =&gt; $entity-&gt;nid,
                                    'language' =&gt; 'en',
                                    'source' =&gt; 'el',
                                    'uid' =&gt; '1',
                                    'status' =&gt; '1',
                                    'translate' =&gt; '0',

                            ),
                    )
            );
 }