Use t() for #title and #description in tests and test modules

Created on 9 July 2020, over 4 years ago
Updated 30 July 2024, 5 months ago

Problem/Motivation

TBA

Steps to reproduce

Proposed resolution

Use t() function for the titles and description in test files and test modules.

 function views_test_classy_subtheme_views_ui_display_tab_alter(&$build, ViewUI $view, $display_id) {
-  $build['details']['top']['display_title']['#description'] = 'This is text added to the display edit form';
+  $build['details']['top']['display_title']['#description'] = t('This is text added to the display edit form');

Remaining tasks

Update documentation.

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Needs work

Version

11.0 🔥

Component
Other 

Last updated 1 day ago

Created by

🇮🇳India shaktik New Delhi

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

  • Needs documentation

    A documentation change is requested elsewhere. For Drupal core (and possibly other projects), once the change has been committed, this status should be recorded in a change record node.

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