Installing new module leads to mess-up in configs translations (for some configs)

Created on 2 August 2023, over 1 year ago
Updated 5 June 2024, 6 months ago

Hi,

In short: when we install a new module every time it happens that some already translated configurations are reset to the original value.

Our setup:
- Drupal 9, PHP 8.1
- Configs are synced in a folder and commited to git
- default language is German, there is no method chosen for detecting the language as this project is German only
- we translated the strings directly in die admin ui - not via "translated configuration" as German is the default language.

What happpens in more detail
This happens for example to some views (but some other configs as well) and only for some strings in the affected configs. In the view administration for some default views like the views for content, comment or watchdog we have changed the labels for "Items per page", "Offset" or for the links in pager "Β« First" and "Last Β»" to the German words "Elemente pro Seite", "Versatz", "Anfang", "Ende". Other translated strings in these configs are not effected and remain in the correct German version. So every time a new module is installed these strings are reset to the original values.

I even found an example where this happens for a custom view we have created. The strange thing here: for the exposed form submit button we oviously changed some day the label from "Suche" (German for search, noun) to "Suchen" (German for to search, verb) and now it happens that even this string gets reset. And I have no clue where Drupal gets this first "Suche" (without N) version from.

The configs are committed to git in the sync folder this is why we see this issue appearing every time we installed a new module and export the configs to the sync folder. When this happens we simply discard the changes in the exported config files and import the configs again into Drupal so for us it is not such a big deal - only when a new module is installed it becomes a hazzle to find out which config changes really need to be committed and which need to be discarded. But I wonder if anyone else found this issue?

πŸ› Bug report
Status

Closed: duplicate

Version

11.0 πŸ”₯

Component
ConfigurationΒ  β†’

Last updated 7 days ago

Created by

πŸ‡©πŸ‡ͺGermany tobiberlin Berlin, Germany

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