Remove all invalid lowercase transformations from translatable strings

Created on 25 October 2015, over 8 years ago
Updated 12 March 2023, over 1 year ago

Problem/Motivation

getEntityTypeId() returns a lowercase string. This is incorrect in German. Strings must not made lowercase!

/**
   * {@inheritdoc}
   */
  public function getTitle() {
    // Use the custom 'config_translation_plugin_id' plugin definition key to
    // retrieve the 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 = Unicode::strtolower($this->mapperManager()->createInstance($this->pluginDefinition['config_translation_plugin_id'])->getTypeLabel());
    return $this->t('Translate @type_name', array('@type_name' => $type_name));
  }

Screenshot (admin/config/regional/language/edit/de):

This need to be "Sprache" and not "sprache" or as translation "Translate language" becomes "Sprache übersetzten" in German or in code '@entity_type übersetzen'

Steps to reproduce

Proposed resolution

TBS

Remaining tasks

Discuss and agree on the approach, see #3, #21, #29

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

10.1

Component
Config translation 

Last updated about 1 month ago

Created by

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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