Project

General

Profile

Actions

Bug #78984

closed

Missing translation of help text in TCA select renderType=selectCheckBox

Added by Georg Tiefenbrunn almost 8 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2016-12-13
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
8
PHP Version:
7.0
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

The fourth value of TCA select items is an optional description text (see TCA Reference 7.6 / 8-dev).

This text is not translated in Version 7.6 and 8-dev.

Suggested patch for version 7.6:

Index: sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php
<+>UTF-8
===================================================================
--- sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php    (revision )
+++ sysext/backend/Classes/Form/FormDataProvider/AbstractItemProvider.php    (revision )
@@ -1228,7 +1228,7 @@
             }
             $value = strlen((string)$item[1]) > 0 ? $item[1] : '';
             $icon = $item[2] ?: null;
-            $helpText = $item[3] ?: null;
+            $helpText = $languageService->sL(trim($item[3])) ?: null;
             $itemArray[$key] = [
                 $label,
                 $value,

Actions

Also available in: Atom PDF