diff -u b/core/modules/language/migration_templates/d6_language_content_menu_settings.yml b/core/modules/language/migration_templates/d6_language_content_menu_settings.yml --- b/core/modules/language/migration_templates/d6_language_content_menu_settings.yml +++ b/core/modules/language/migration_templates/d6_language_content_menu_settings.yml @@ -13,5 +13,4 @@ default_langcode: 'constants/site_default' language_alterable: language_alterable - third_party_settings/content_translation/enabled: enabled destination: plugin: entity:language_content_settings diff -u b/core/modules/menu_link_content/src/Plugin/migrate/source/d6/MenuLinkTranslation.php b/core/modules/menu_link_content/src/Plugin/migrate/source/d6/MenuLinkTranslation.php --- b/core/modules/menu_link_content/src/Plugin/migrate/source/d6/MenuLinkTranslation.php +++ b/core/modules/menu_link_content/src/Plugin/migrate/source/d6/MenuLinkTranslation.php @@ -78,17 +78,17 @@ $row->setSourceProperty($property . '_translated', $row->getSourceProperty('translation')); // Get the translation for the property not already in the row. - $property2 = ($property == 'title') ? 'description' : 'title'; + $other_property = ($property == 'title') ? 'description' : 'title'; $query = $this->select('i18n_strings', 'i18n') ->fields('i18n', ['lid']); $query - ->condition('i18n.property', $property2) + ->condition('i18n.property', $other_property) ->condition('i18n.objectid', $mlid); $query->leftJoin('locales_target', 'lt', 'i18n.lid = lt.lid'); $query->condition('lt.language', $language); $query->addField('lt', 'translation'); $results = $query->execute()->fetchAssoc(); - $row->setSourceProperty($property2 . '_translated', $results['translation']); + $row->setSourceProperty($other_property . '_translated', $results['translation']); } /**