summaryrefslogtreecommitdiffstats
path: root/core/modules/migrate_drupal
diff options
context:
space:
mode:
authorNathaniel Catchpole2019-01-07 11:27:16 (GMT)
committerNathaniel Catchpole2019-01-07 11:27:33 (GMT)
commitcdd317ebc6ecfc1f903f3993762e5d3ecd4ac0dd (patch)
treede5f7c403d622005b5059c2db69ed5ca81541e98 /core/modules/migrate_drupal
parent236623f1aa60aa419ee86a87c8af022b6eac3c5c (diff)
Issue #2845975 by quietone, Jo Fitzgerald, aleevas, maxocub, Gábor Hojtsy: Migrate Drupal 6 user profile field value option translations
(cherry picked from commit 75a4213161ea439851970c9ab839f526d576ce25)
Diffstat (limited to 'core/modules/migrate_drupal')
-rw-r--r--core/modules/migrate_drupal/tests/fixtures/drupal6.php117
1 files changed, 85 insertions, 32 deletions
diff --git a/core/modules/migrate_drupal/tests/fixtures/drupal6.php b/core/modules/migrate_drupal/tests/fixtures/drupal6.php
index 6c00957..cf891c4 100644
--- a/core/modules/migrate_drupal/tests/fixtures/drupal6.php
+++ b/core/modules/migrate_drupal/tests/fixtures/drupal6.php
@@ -10062,6 +10062,22 @@ $connection->insert('i18n_strings')
'objectindex' => '14',
'format' => '0',
))
+->values(array(
+ 'lid' => '1695',
+ 'objectid' => 'profile_count_trees',
+ 'type' => 'field',
+ 'property' => 'title',
+ 'objectindex' => '0',
+ 'format' => '0',
+))
+->values(array(
+ 'lid' => '1696',
+ 'objectid' => 'profile_count_trees',
+ 'type' => 'field',
+ 'property' => 'options',
+ 'objectindex' => '0',
+ 'format' => '0',
+))
->execute();
$connection->schema()->createTable('i18n_variable', array(
'fields' => array(
@@ -22649,6 +22665,20 @@ $connection->insert('locales_source')
'source' => 'The home of Captain Christopher Pike.',
'version' => '1',
))
+->values(array(
+ 'lid' => '1695',
+ 'location' => 'field:profile_:title',
+ 'textgroup' => 'profile',
+ 'source' => 'Number of trees',
+ 'version' => '1',
+))
+->values(array(
+ 'lid' => '1696',
+ 'location' => 'field:profile_:options',
+ 'textgroup' => 'profile',
+ 'source' => "10\r\n20\r\n50\r\n100\r\n1000",
+ 'version' => '1',
+))
->execute();
$connection->schema()->createTable('locales_target', array(
'fields' => array(
@@ -27709,14 +27739,6 @@ $connection->insert('locales_target')
'i18n_status' => '0',
))
->values(array(
- 'lid' => '1672',
- 'translation' => 'fr - Type',
- 'language' => 'fr',
- 'plid' => '0',
- 'plural' => '0',
- 'i18n_status' => '0',
-))
-->values(array(
'lid' => '1678',
'translation' => 'fr - I really, really, really love migrating ',
'language' => 'fr',
@@ -27725,30 +27747,6 @@ $connection->insert('locales_target')
'i18n_status' => '0',
))
->values(array(
- 'lid' => '1690',
- 'translation' => 'Noir',
- 'language' => 'fr',
- 'plid' => '0',
- 'plural' => '0',
- 'i18n_status' => '0',
-))
-->values(array(
- 'lid' => '1692',
- 'translation' => 'fr - Talos IV',
- 'language' => 'fr',
- 'plid' => '0',
- 'plural' => '0',
- 'i18n_status' => '0',
-))
-->values(array(
- 'lid' => '1694',
- 'translation' => 'fr - The home of Captain Christopher Pike.',
- 'language' => 'fr',
- 'plid' => '0',
- 'plural' => '0',
- 'i18n_status' => '0',
-))
-->values(array(
'lid' => '66',
'translation' => 'zu - CCK - Aucune Intégration aux Vues',
'language' => 'zu',
@@ -27877,6 +27875,14 @@ $connection->insert('locales_target')
'i18n_status' => '0',
))
->values(array(
+ 'lid' => '1690',
+ 'translation' => 'Noir',
+ 'language' => 'fr',
+ 'plid' => '0',
+ 'plural' => '0',
+ 'i18n_status' => '0',
+))
+->values(array(
'lid' => '1691',
'translation' => 'Mhlophe',
'language' => 'zu',
@@ -27885,6 +27891,22 @@ $connection->insert('locales_target')
'i18n_status' => '0',
))
->values(array(
+ 'lid' => '1672',
+ 'translation' => 'fr - Type',
+ 'language' => 'fr',
+ 'plid' => '0',
+ 'plural' => '0',
+ 'i18n_status' => '0',
+))
+->values(array(
+ 'lid' => '1692',
+ 'translation' => 'fr - Talos IV',
+ 'language' => 'fr',
+ 'plid' => '0',
+ 'plural' => '0',
+ 'i18n_status' => '0',
+))
+->values(array(
'lid' => '1693',
'translation' => 'zu - Vulcan',
'language' => 'zu',
@@ -27900,6 +27922,22 @@ $connection->insert('locales_target')
'plural' => '0',
'i18n_status' => '0',
))
+->values(array(
+ 'lid' => '1694',
+ 'translation' => 'fr - The home of Captain Christopher Pike.',
+ 'language' => 'fr',
+ 'plid' => '0',
+ 'plural' => '0',
+ 'i18n_status' => '0',
+))
+->values(array(
+ 'lid' => '1696',
+ 'translation' => "fr - 10\r\nfr - 20\r\nfr - 50\r\nfr - 100\r\nfr - 1000",
+ 'language' => 'fr',
+ 'plid' => '0',
+ 'plural' => '0',
+ 'i18n_status' => '0',
+))
->execute();
$connection->schema()->createTable('menu_custom', array(
'fields' => array(
@@ -45450,6 +45488,21 @@ $connection->insert('profile_fields')
'autocomplete' => '0',
'options' => '',
))
+->values(array(
+ 'fid' => '17',
+ 'title' => 'Number of trees',
+ 'name' => 'profile_count_trees',
+ 'explanation' => '',
+ 'category' => 'Personal information',
+ 'page' => '',
+ 'type' => 'selection',
+ 'weight' => '0',
+ 'required' => '0',
+ 'register' => '0',
+ 'visibility' => '2',
+ 'autocomplete' => '0',
+ 'options' => "10\r\n20\r\n50\r\n100\r\n1000",
+))
->execute();
$connection->schema()->createTable('profile_values', array(
'fields' => array(