diff --git a/core/modules/content_translation/src/Plugin/migrate/source/d6/TermLocalizedTranslation.php b/core/modules/content_translation/src/Plugin/migrate/source/d6/TermLocalizedTranslation.php index 70cf4225b4..d998b6f769 100644 --- a/core/modules/content_translation/src/Plugin/migrate/source/d6/TermLocalizedTranslation.php +++ b/core/modules/content_translation/src/Plugin/migrate/source/d6/TermLocalizedTranslation.php @@ -6,7 +6,7 @@ use Drupal\taxonomy\Plugin\migrate\source\d6\Term; /** - * Gets i18n strings profile field source from database. + * Gets i18n taxonomy terms from source database. * * @MigrateSource( * id = "d6_term_localized_translation", @@ -19,12 +19,12 @@ class TermLocalizedTranslation extends Term { * {@inheritdoc} */ public function query() { - // Ideally, the query would return rows for each language for each menu link - // with the translations for both the title and description or just the - // title translation or just the description translation. That query quickly + // Ideally, the query would return rows for each language for each taxonomy + // term with the translations for both the name and description or just the + // name translation or just the description translation. That query quickly // became complex and would be difficult to maintain. // Therefore, build a query based on i18nstrings table where each row has - // the translation for only one property, either title or description. The + // the translation for only one property, either name or description. The // method prepareRow() is then used to obtain the translation for the other // property. $query = parent::query(); @@ -80,8 +80,8 @@ public function prepareRow(Row $row) { */ public function fields() { $fields = [ - 'language' => $this->t('Language for this menu.'), - 'name_translated' => $this->t('Term nametranslation.'), + 'language' => $this->t('Language for this term.'), + 'name_translated' => $this->t('Term name translation.'), 'description_translated' => $this->t('Term description translation.'), ]; return parent::fields() + $fields; diff --git a/core/modules/content_translation/tests/src/Kernel/Migrate/d6/MigrateTermLocalizedTranslationTest.php b/core/modules/content_translation/tests/src/Kernel/Migrate/d6/MigrateTermLocalizedTranslationTest.php index 8e21ce5d4f..fd4579cb2e 100644 --- a/core/modules/content_translation/tests/src/Kernel/Migrate/d6/MigrateTermLocalizedTranslationTest.php +++ b/core/modules/content_translation/tests/src/Kernel/Migrate/d6/MigrateTermLocalizedTranslationTest.php @@ -7,7 +7,7 @@ use Drupal\taxonomy\TermInterface; /** - * Test migration of translated localized taxonomy terms. + * Tests migration of localized translated taxonomy terms. * * @group migrate_drupal_6 */ @@ -50,7 +50,7 @@ protected function setUp() { } /** - * Validate a migrated term contains the expected values. + * Validates a migrated term contains the expected values. * * @param int $id * Entity ID to load and check. @@ -87,7 +87,7 @@ protected function assertEntity($id, $expected_language, $expected_label, $expec } /** - * Assert that a term is present in the tree storage, with the right parents. + * Asserts that a term is present in the tree storage, with the right parents. * * @param string $vid * Vocabulary ID.