Use a not so generic Text for acceptOnce or add translation context

Created on 1 December 2023, about 1 year ago
Updated 2 August 2024, 4 months ago

Problem/Motivation

When a translation configuration is saved in the Backend, an event subscriber in locale
\Drupal\locale\LocaleConfigSubscriber::onOverrideChange()
saves it also in the "User interface translations"
as translation for the default (from config/install) configuration for the item.
If the value in config/install is something generic (eg "Yes") and is translated into something not so generic (eg "Ja, einmal") the translation will be very obviously wrong everywhere on the system (eg views listing Published Status as "Yes" will show "Ja, einmal" in DE)

Proposed resolution

Either change the text to something not so generic or Try to set a translation context for the texts

Feature request
Status

Fixed

Version

3.0

Component

Code

Created by

🇩🇪Germany sascha_meissner Planet earth

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

Comments & Activities

Production build 0.71.5 2024