Commit 395d5efb authored by Mathias Schreiber's avatar Mathias Schreiber Committed by Markus Klein
Browse files

[BUGFIX] Make labeledToggleCheckbox localizable

The labels of a labeledToggleCheckbox are now localizable using
the well known LLL syntax.

Resolves: #84803
Releases: master
Change-Id: Iaaa3c84393ce1b998752b5db18dafc2aa7d385d3

Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <>
Tested-by: default avatarTYPO3com <>
Reviewed-by: default avatarMichael Oehlhof <>
Reviewed-by: default avatarRiny van Tiggelen <>
Reviewed-by: Jan Delius's avatarJan Delius <>
Tested-by: Jan Delius's avatarJan Delius <>
Reviewed-by: Richard Haeser's avatarRichard Haeser <>
Tested-by: Richard Haeser's avatarRichard Haeser <>
Reviewed-by: default avatarJan Stockfisch <>
Reviewed-by: Markus Klein's avatarMarkus Klein <>
Tested-by: Markus Klein's avatarMarkus Klein <>
parent d698ac14
......@@ -144,10 +144,10 @@ class TcaCheckboxItems extends AbstractItemProvider implements FormDataProviderI
private function sanitizeLabeledToggleCheckbox(array $item, int $itemKey, array $newItems)
if (array_key_exists('labelChecked', $item)) {
$newItems[$itemKey]['labelChecked'] = $item['labelChecked'];
$newItems[$itemKey]['labelChecked'] = $this->getLanguageService()->sL($item['labelChecked']);
if (array_key_exists('labelUnchecked', $item)) {
$newItems[$itemKey]['labelUnchecked'] = $item['labelUnchecked'];
$newItems[$itemKey]['labelUnchecked'] = $this->getLanguageService()->sL($item['labelUnchecked']);
if (array_key_exists('invertStateDisplay', $item)) {
$newItems[$itemKey]['invertStateDisplay'] = $item['invertStateDisplay'];
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment