Changing system.site langcode breaks UI modification capability

Created on 26 January 2022, over 2 years ago
Updated 23 August 2023, about 1 year ago

Problem/Motivation

Hi everyone
There is a major issue with site name changing through configuration manager in multilingual site.
The scope considered:
- Use Drupal installation built with English language for a multilingual purpose
- Use another language as default language and provide consistent experience across all pages in terms of original language
- Make all configuration management per language
- Ability to utilize UI capability for site management and administration
- Drupal translate system should take into account current or built configuration (original configuration) as default configuration.

Drupal basic settings (system.site) configuration would break UI capability by modifying the langcode of the configuration file. By changing the langcode no longer the UI has the capability to change the site name. The site name would not change from the UI but rather directly with configuration synchronization.

Steps to reproduce

  1. To act fast utilize simplytest.me
  2. Install Drupal Umami Magazine - simplytest.me
  3. Go to Basic site settings and choose two different name for each language
  4. Change the English default language to Spanish language
  5. Revert back to Site settings > Translate system information, one could see that the original language does not changed.
  6. Go to configuration synchronization and manually change the langcode from en to es.
  7. Save the configuration.
  8. Change the site name in both language. You should see that the new site name configuration site could not be modified from UI.
  9. Please find attached the screen shots.

It seems that the backend system removes the file related to the original configuration and the new langcode modification and import are not taken into account. In this manner the configuration integrity is broken, no longer changing the strings from UI is possible.
If you revert back to the default langcode here is en, it would not be any help, and issue persist.

Proposed resolution

Configuration synchronization from the UI perspective and backend yaml files are respected differently. in the UI only a file is shown with no respect to language but in the backend and sync config folder 3 version of file exist. One in en language, one in es language and one in the sync root.

Remaining tasks

A capability should be added to Drupal system to make configuration adjustment per language.

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.0 🔥

Component
Configuration 

Last updated 1 day ago

Created by

🇮🇷Iran tsotoodeh

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.71.5 2024