Problem/Motivation

Drupal CMS looks nice... on presentation. But it completely unusable as starting point for non English sites.
Just change installer language to any other variant exept English and after install you will get unusable site. I understand why "homepage" page can be broken. But why Drupal Canvas so broken and can`t be used for creating pages?...

Steps to reproduce

1. Download Drupal CMS with composer
2. Choose any other installer language exept English
3. Voila - you get broken site

Proposed resolution

Make receipts not so language dependent?
I do not mind if after installing Drupal CMS in French/Italian/Ukrainian etc. I will get demo content in English. I am concerned that the site completely broken and not working after installation.

Comments

bondd created an issue. See original summary.

bondd’s picture

Title: Drupal CMS not work if installed i other language than English » Drupal CMS not work if installed in other language than English
phenaproxima’s picture

This, I'm sorry to say, is something we have known about for a long time.

The problem is not really us; the issue is that core doesn't properly support multilingual recipes, for a whole host of complex reasons. Canvas has a whole other set of problems related to multilingual.

Indeed, there is a whole gaggle of people (alexpott, bircher, Jose Reyero, Anjali Rathod, penyaskito, others I'm forgetting at the moment) who are working on trying to fix core's support for multilingual recipes. When that happens, Drupal CMS will of course immediately adopt whatever APIs, and make whatever changes, are needed to support that.

If you want to join that effort, you'd be more than welcome -- I can put you in touch with the right folks (some of whom are listed above). Feel free to DM me in Drupal Slack; my handle is phenaproxima.

But unfortunately, at this point in the game, multilingual support is out of Drupal CMS's hands. The necessary fixes and additions are complicated, and to make things worse, they also need to be done deep in core subsystems, which we cannot polyfill or patch. We're not happy about it, as multilingual is supposed to be one of Drupal's strengths, but that's the situation.

pameeela’s picture

Status: Active » Postponed (maintainer needs more info)

The above information is true, but Drupal CMS should be (and in my experience is) installable in other languages. This report isn't asking for multilingual recipes, it is saying the site is broken on install.

@bondd are you seeing the same as #3573892: Version mismatch error on fresh install of Drupal CMS when installing in a language other than English? Or if not, what error are you seeing?

bondd’s picture

Looks like same error as in mentioned issue. But it applies not only to German localization, but also to any language other than English.
And... after some investigation on recipes I discovered "root" of problem.
In recipe we add canvas components with language bounded versions.
recipes/drupal_cms_starter/config/canvas.component.block.system_branding_block.yml

langcode: en
status: true
dependencies:
  module:
    - system
active_version: b168140fdcaebae5
versioned_properties:
  active:
    settings:
      default_settings:
        id: system_branding_block
        label: 'Site branding'
        label_display: '0'
        provider: system
        use_site_logo: true
        use_site_name: true
        use_site_slogan: true
    fallback_metadata:
      slot_definitions: null
label: 'Site branding'
id: block.system_branding_block
provider: system
source: block
source_local_id: system_branding_block
category: System

And that's okay.
But when we add content templates and region we (I do not know why) add canvas components not only by their id, but also mentioning exact (language bounded) version.
canvas.content_template.node.page.full.yml

langcode: en
status: true
dependencies:
  config:
    - canvas.component.block.system_breadcrumb_block
    - canvas.component.sdc.mercury.heading
    - canvas.component.sdc.mercury.section
    - canvas.component.sdc.mercury.text
    - core.entity_view_mode.node.full
    - field.field.node.page.field_content
    - filter.format.content_format
    - node.type.page
  module:
    - node
    - options
id: node.page.full
content_entity_type_id: node
content_entity_type_bundle: page
content_entity_type_view_mode: full
component_tree:
  0:
    uuid: 92e68054-9f78-4420-8752-96ec693d2fa9
    component_id: block.system_breadcrumb_block
    component_version: ad6359c331fc7c45
    inputs: '{"label":"Breadcrumbs","label_display":"0"}'
  1:
    uuid: b436211b-95ef-40ea-987a-e7b0f5782e33
    component_id: sdc.mercury.section
    component_version: 5ef4c2af9bd07348
    inputs: '{"columns":"100","mobile_columns":"1","width":"75%","margin_block_start":"48","margin_block_end":"48","padding_block_start":"0","padding_block_end":"0","section_header":true,"section_footer":true}'
  '1:header_slot:0':
    parent_uuid: b436211b-95ef-40ea-987a-e7b0f5782e33
    slot: header_slot
    uuid: f08be9dc-e328-4cb7-9499-df6db9bd8900
    component_id: sdc.mercury.heading
    component_version: 6e6854ead521fa05
    inputs: '{"heading_text":{"sourceType":"dynamic","expression":"\u2139\ufe0e\u241centity:node:page\u241dtitle\u241e\u241fvalue"},"level":1,"text_size":"default","text_color":"default","align":"left","url":"No URL"}'
  '1:main_slot:0':
    parent_uuid: b436211b-95ef-40ea-987a-e7b0f5782e33
    slot: main_slot
    uuid: caa1e4b2-d58b-4140-b99b-ab3e1ce55ad5
    component_id: sdc.mercury.text
    component_version: 16c79c28a4108f9b
    inputs: '{"text":{"sourceType":"dynamic","expression":"\u2139\ufe0e\u241centity:node:page\u241dfield_content\u241e\u241fprocessed"},"text_size":"normal","text_color":"default"}'
exposed_slots: {  }

Which makes no sense, because if you choose a different installation language, all content (and components too) will be created in the selected language and will have a completely different version number.
I tried to comment out all "component_version" in content_template and page_region files and after that Drupal CMS install went just fine. And I get working homepage (in English) and working Canvas page builder.

pameeela’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (duplicate)

@bondd the strange thing is that I can't reproduce this issue. I will close this as a duplicate to avoid splitting the conversation but as you can see in the comments on that issue, I am able to install any of the site templates in another language and I don't get the errors reported here.

I will add another comment there with more info.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

bondd’s picture

Issue summary: View changes

Seems problem fixed in last updates to core-composer-scaffold/core-recipe-unpack