Casing of translatable string incorrectly hard coded

Created on 19 June 2025, 9 days ago

Problem/Motivation

 public function getTitle(?Request $request = NULL) {
    // Take custom 'config_translation_plugin_id' plugin definition key to
    // retrieve title. We need to retrieve a runtime title (as opposed to
    // storing the title on the plugin definition for the link) because
    // it contains translated parts that we need in the runtime language.
    $type_name = mb_strtolower($this->mapperManager()->createInstance($this->pluginDefinition['config_translation_plugin_id'])->getTypeLabel());
    return $this->t('Translate @type_name', ['@type_name' => $type_name]);
  } 

Steps to reproduce

Proposed resolution

Remove string to lower function used incorrectly

Remaining tasks

Write patch

User interface changes

Correct casing of translated string e.g. in German and all other languages

Introduced terminology

None

API changes

None

Data model changes

None

Release notes snippet

🐛 Bug report
Status

Active

Version

11.2 🔥

Component

config_translation.module

Created by

🇩🇪Germany marc.bau

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024