Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 297754

Migrate vocabulary translations and taxonomy term references for Drupal 7 node translations

$
0
0

Problem/Motivation

D7 follow-up for #2859297: Migrate taxonomy term references for D6 Node translations. This issue is about translations of vocabularies and references from the migrated node translations to the terms.

Proposed resolution

Write the migration in the same fashion as we did for D6 in #2859297: Migrate taxonomy term references for D6 Node translations.

The scope of this issue is the reference from the node translation to the taxonomy term.

Test case 1 when using 'Localized' vocabulary together with 'Node translation' concept.

  • Have two node entities in Drupal 7, one in English (nid A) and one for example in Finnish (nid B). Associate these as translations of each other.
  • Have one taxonomy term in Drupal 7 which is translated in Drupal 7 using the 'Localized' concept.
  • Make sure that both English and Finnish versions of the Drupal 7 node have a reference to the term.

Expected result:

  • The Finnish language version of the node is migrated as a translation to the English node. In other words, there were 2 nodes in Drupal 7 but there will only be 1 node in Drupal 8.
  • Both language versions of the Drupal 8 node must have a reference to the term.

Implementation in D7 fixture:
Vocabulary name: vocablocalized,
French translation: name, 'fr - VocabLocalized', description, 'fr - Vocabulary localize option'
Icelandic translation: name, 'is - VocabLocalized', description, 'is - Vocabulary localize option'

Test case 2 when using 'Translated' vocabulary.

  • Have two node entities in Drupal 7, one in English and one for example in Finnish. Associate these as translations of each other.
  • Have two taxonomy terms in Drupal 7. The vocabulary must have the 'Translate' multilingual setting. Both taxonomy terms will have their language defined.
  • Make sure that the English node has a reference to the English term in Drupal 7.
  • Make sure that the Finnish node has a reference to the Finnish term in Drupal 7.

Expected result:

  • The Finnish language version of the node is migrated as a translation to the English node. In other words, there were 2 nodes in Drupal 7 but there will only be 1 node in Drupal 8.
  • When viewing the English version of the Drupal 8 node (original language of the node), it must have a reference to the English term.
  • When viewing the Finnish translation of the Drupal 8 node, it must have a reference to the Finnish term.

Implementation in D7 fixture:
Vocabulary name: vocabtranslate.
French translation: None added
Icelandic translation: name, 'is - VocabTranslate', description, 'is - Vocabulary translate option'

Remaining tasks

Review, commit.

User interface changes

N/A

API changes

N/A

Data model changes

N/A


Viewing all articles
Browse latest Browse all 297754

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>