Fix transltion string in ConfigFormBase.php

Created on 21 June 2024, 10 months ago

Problem/Motivation

This string should not be passed through the translation system. It should maybe be FormattableMarkup. Needs a follow-up filed to fix and discuss.

from alexpott in https://git.drupalcode.org/project/drupal/-/merge_requests/8393/diffs#no...

From core/lib/Drupal/Core/Form/ConfigFormBase.php,
foreach ($zone_list as $zone) {$zones[$zone] = new TranslatableMarkup(str_replace('_', ' ', $zone));

Follow up from πŸ“Œ Fix 'Drupal.Semantics.FunctionT.NotLiteralString' coding standard Active

Steps to reproduce

Proposed resolution

TBD

Remaining tasks

Investigate and decide on a course of action
Review

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Active

Version

11.0 πŸ”₯

Component
ConfigurationΒ  β†’

Last updated 1 day ago

Created by

πŸ‡³πŸ‡ΏNew Zealand quietone

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