'Custom Body Class Settings' label in content type edit page does not show translation

Created on 25 December 2023, 6 months ago
Updated 2 February 2024, 5 months ago

Problem/Motivation

Even when the translation has been added, the 'Custom Body Class Settings' label in content type edit page does not show the translation for the active site language.

Steps to reproduce

  1. Install and enable module.
  2. Add translation to the 'Custom Body Class Settings' string.
  3. Access content type edit screen (/admin/structure/types/manage/content_type).
  4. The label 'Custom Body Class Settings' does not show the translation.

Proposed resolution

Change line 46 of custom_body_class.module from

#title' => ('Custom Body Class Settings'),

to

#title' => t('Custom Body Class Settings'),

After this change, the label translation in displayed.

🐛 Bug report
Status

RTBC

Version

2.0

Component

User interface

Created by

🇯🇵Japan jorgemare

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024