Gin Settings Using static text that does not support translation

Created on 23 February 2025, about 1 month ago

Problem/Motivation

the GinSettings.php file contains hardcoded text that is not wrapped in a translation function, making it unavailable for translation into other languages.

Steps to reproduce

public function getSettingsForm(?AccountInterface $account = NULL): array {
    $experimental_label = ' <span class="gin-experimental-flag">Experimental</span>';
    $beta_label = ' <span class="gin-beta-flag">Beta</span>';
    $new_label = ' <span class="gin-new-flag">New</span>';

Proposed resolution

To support translations, you should wrap text in t() or this->t() (if inside a class using StringTranslationTrait).

🐛 Bug report
Status

Active

Version

4.0

Component

Code

Created by

🇮🇳India Ujjval Kumar Jha

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