I'm creating some D7 to D7 migrate imports, i've mapped the fields like this:

class MigrazioneNodiConcept extends MigrazioneNodi{
  public function __construct(array $arguments) {
    parent::__construct($arguments);

    $this->sourceFields['title_field:language'] = 'Titolo: lingua del campo';
    $this->sourceFields['field_subtitle_concept:language'] = 'Subtitle: lingua del campo';

    $this->source = new MigrateSourceSQL($this->query(), $this->sourceFields, NULL, $this->sourceOptions);

    $this->addFieldMapping('title_field', 'title_field');
    $this->addFieldMapping('title_field:language', 'title_field:language');

but nothing appens. All the fields are imported with one (random) language... all my modules are in the latest DEV version... someone can help me?

Comments

plach’s picture

Project: Entity Translation » Migrate
Version: 7.x-1.x-dev » 7.x-2.x-dev
Component: Base system » Code

This is definitely a question for Migrate maintainers :)

13rac1’s picture

Assigned: csedax90 » Unassigned

Are you using the Drupal to Drupal migration module? https://drupal.org/project/migrate_d2d Perhaps this should go into that specific queue?

mikeryan’s picture

Project: Migrate » Drupal-to-Drupal data migration
Status: Active » Postponed (maintainer needs more info)

Moving to the correct queue.

Please provide more details - it's difficult to tell what might be happening here. Also, you might want to look at #2091029: Entity translations are not migrated when using *:language subfields - at this point there's no support for migration into the Entity Translation module.

mikeryan’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)