Remove misuses of t() function

Created on 13 September 2015, about 9 years ago
Updated 30 August 2024, 3 months ago

Problem/Motivation

In core there is not a real convention whether to use t() function to concatenate different string together or not. In #2567159: Fix improper usage of t() in ViewsBlock we decided that t() function is misused when there is no reason to use it for concatenating strings.


$desc = t('@view: @display', array('@view' => $view->label(), '@display' => $display->display['display_title']));

Proposed resolution

Replace misuses of t() function with SafeMarkup::format().

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Closed: duplicate

Version

11.0 🔥

Component
Other 

Last updated about 20 hours ago

Created by

🇫🇮Finland lauriii Finland

Live updates comments and jobs are added and updated live.
  • D8MI

    (Drupal 8 Multilingual Initiative) is the tag used by the multilingual initiative to mark core issues (and some contributed module issues). For versions other than Drupal 8, use the i18n (Internationalization) tag on issues which involve or affect multilingual / multinational support. That is preferred over Translation.

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