Skip to content
Snippets Groups Projects
Unverified Commit 6f5b187d authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3187418 by Wim Leers, huzooka: System site translation shouldn't...

Issue #3187418 by Wim Leers, huzooka: System site translation shouldn't migrate properties which are not translatable

(cherry picked from commit c5eada74)
parent b80e41cf
Branches
Tags
6 merge requests!1286issue #3240655 by elfakhar,!1285Issue #3240655 by elfakhar Aligne the active border,!541Issue #3123070: Fix 'PSR2.Classes.PropertyDeclaration.Underscore' coding standard,!463Resolve #3205025 "Class align center for media",!386Allow multiple vocabularies in the taxonomy filter,!308Issue #3118206: Remote media does not validate provider
......@@ -8,19 +8,11 @@ source:
plugin: d7_variable_translation
variables:
- site_name
- site_mail
- site_slogan
- site_frontpage
- site_403
- site_404
process:
langcode: language
name: site_name
mail: site_mail
slogan: site_slogan
'page/front': site_frontpage
'page/403': site_403
'page/404': site_404
destination:
plugin: config
config_name: system.site
......
......@@ -35,17 +35,17 @@ public function testSystemSite() {
$config_translation = $language_manager->getLanguageConfigOverride('fr', 'system.site');
$this->assertSame('The Site Name', $config_translation->get('name'));
$this->assertSame('fr - The Slogan', $config_translation->get('slogan'));
$this->assertSame('node', $config_translation->get('page.403'));
$this->assertSame('node', $config_translation->get('page.404'));
$this->assertSame('node', $config_translation->get('page.front'));
$this->assertSame(NULL, $config_translation->get('page.403'));
$this->assertSame(NULL, $config_translation->get('page.404'));
$this->assertSame(NULL, $config_translation->get('page.front'));
$this->assertSame(NULL, $config_translation->get('admin_compact_mode'));
$config_translation = $language_manager->getLanguageConfigOverride('is', 'system.site');
$this->assertSame('is - The Site Name', $config_translation->get('name'));
$this->assertSame('is - The Slogan', $config_translation->get('slogan'));
$this->assertSame('node/1', $config_translation->get('page.403'));
$this->assertSame('node/6', $config_translation->get('page.404'));
$this->assertSame('node/4', $config_translation->get('page.front'));
$this->assertSame(NULL, $config_translation->get('page.403'));
$this->assertSame(NULL, $config_translation->get('page.404'));
$this->assertSame(NULL, $config_translation->get('page.front'));
$this->assertNULL($config_translation->get('admin_compact_mode'));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment