Config installed with a label prevents translation/hiding label

Created on 14 August 2023, about 1 year ago
Updated 21 August 2023, about 1 year ago

Problem/Motivation

When a module adds a view on install it messes with the translations.

In Drupal Core the text "Remove" is translated to "Fjern" in Norwegian. If a module has a view with the label "Remove" and you try to hide that label the translation for "Remove" is removed. If you add a translation for it again through /admin/config/regional/translate the label in the view is added again with the text added in the translation interface.

Steps to reproduce

  1. Install a module with a view that has a label
  2. Try to hide the label
  3. Translation disappears
  4. Add a new value as a translation for the field
  5. The view suddenly has the label again with the text from the translation

I have created a small project to reproduce it: https://github.com/andeersg/drupal_config_bug

  1. Install the site with standard and set Norwegian as the language
  2. Go to /admin/config/regional/translate and see that there is a translation for "Remove"
  3. Enable the module "config_example" and go to the view "Test"
  4. Either change the label text or remove the label
  5. Translation for "Remove" is either changed or removed

I encountered this in Commerce since the cart form comes with a remove button that both has the label "Remove" and the button text "Remove" and hiding the label took away our translation of the button.

I'm not sure if configuration, translation or views is the correct component for this.

πŸ› Bug report
Status

Active

Version

10.1 ✨

Component
ConfigurationΒ  β†’

Last updated 1 day ago

Created by

πŸ‡³πŸ‡΄Norway andeersg

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

Comments & Activities

Production build 0.71.5 2024