Migrate translated block visibility settings

Created on 21 August 2017, almost 7 years ago
Updated 4 October 2023, 9 months ago

Problem/Motivation

The visibility settings of blocks with translations are not migrated. This was discovered while working on #2225681: Migrate D6 i18n blocks translated strings β†’

In #90 β†’ of that issue maxocub wrote:
What I understood and what I tried was:
1) Fresh D6 install
2) Enable i18nblocks
3) Add a language, say French
4) Enable path prefix for language selection
5) Go to the Blocks page
6) Configure a block, say Navigation
7) Chose French in the languages selection
8) Now, if you are seeing the site in English, you don't see the Navigation block, but if you see it in French (/fr) you see it.
9) Then if you migrate, on the D8 site the Navigation block is visible on both English and French, which is not the same behavior as on the D6 site.

If on the D8 site I configure the Main Navigation block and select French, then the visibility configuration of the block will be:

visibility:
  language:
    id: language
    langcodes:
      fr: fr
    negate: false
    context_mapping:
      language: '@language.current_language_context:language_interface'

But in the above migration scenario, the visibility configuration of the block is empty.

Proposed resolution

Write a patch.

Remaining tasks

Do it.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
MigrationΒ  β†’

Last updated about 10 hours ago

Created by

πŸ‡³πŸ‡ΏNew Zealand quietone New Zealand

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024