summaryrefslogtreecommitdiffstats
path: root/core/modules/migrate_drupal
diff options
context:
space:
mode:
authorGábor Hojtsy2018-06-27 14:43:04 (GMT)
committerGábor Hojtsy2018-06-27 14:43:04 (GMT)
commit9319cfd19a8b9a12cba1c1d65edd121b41f3a184 (patch)
tree68fec234f9c281162b107c13e70b2a24f3a8d062 /core/modules/migrate_drupal
parent05a11424fcc480aff2401fcbf52cd80afeba555c (diff)
Issue #2225681 by quietone, Jo Fitzgerald, dipakmdhrm, Adita, RytoEX, maxocub, Gábor Hojtsy, phenaproxima, heddn, masipila, iMiksu, ao2, catch, alexpott, xjm: Migrate D6 i18n blocks translated strings
Diffstat (limited to 'core/modules/migrate_drupal')
-rw-r--r--core/modules/migrate_drupal/tests/fixtures/drupal6.php41
1 files changed, 40 insertions, 1 deletions
diff --git a/core/modules/migrate_drupal/tests/fixtures/drupal6.php b/core/modules/migrate_drupal/tests/fixtures/drupal6.php
index 502e263..5793fd3 100644
--- a/core/modules/migrate_drupal/tests/fixtures/drupal6.php
+++ b/core/modules/migrate_drupal/tests/fixtures/drupal6.php
@@ -746,7 +746,7 @@ $connection->insert('blocks')
'throttle' => '0',
'visibility' => '0',
'pages' => '',
- 'title' => '',
+ 'title' => 'zu - Navigation',
'cache' => '-1',
))
->values(array(
@@ -8706,6 +8706,30 @@ $connection->schema()->createTable('i18n_blocks', array(
'mysql_character_set' => 'utf8',
));
+$connection->insert('i18n_blocks')
+->fields(array(
+ 'ibid',
+ 'module',
+ 'delta',
+ 'type',
+ 'language',
+))
+->values(array(
+ 'ibid' => '1',
+ 'module' => 'user',
+ 'delta' => '1',
+ 'type' => '0',
+ 'language' => 'zu',
+))
+->values(array(
+ 'ibid' => '2',
+ 'module' => 'menu',
+ 'delta' => 'menu-translation-test',
+ 'type' => '0',
+ 'language' => 'zu',
+))
+->execute();
+
$connection->schema()->createTable('i18n_strings', array(
'fields' => array(
'lid' => array(
@@ -9856,6 +9880,14 @@ $connection->insert('i18n_strings')
'objectindex' => '0',
'format' => '0',
))
+->values(array(
+ 'lid' => '1679',
+ 'objectid' => 'menu-translation-test',
+ 'type' => 'menu',
+ 'property' => 'title',
+ 'objectindex' => '0',
+ 'format' => '0',
+))
->execute();
$connection->schema()->createTable('i18n_variable', array(
@@ -22357,6 +22389,13 @@ $connection->insert('locales_source')
'source' => 'I really, really, really love migrating',
'version' => '1',
))
+->values(array(
+ 'lid' => '1679',
+ 'location' => 'menu:menu-translation-test:title',
+ 'textgroup' => 'menu',
+ 'source' => 'Translation test',
+ 'version' => '1',
+))
->execute();
$connection->schema()->createTable('locales_target', array(