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-on: https://review.typo3.org/56745

Reviewed-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: Andreas Fernandez's avatarAndreas Fernandez <a.fernandez@scripting-base.de>
Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Reviewed-by: default avatarRiny van Tiggelen <info@online-gamer.nl>
Reviewed-by: Jan Delius's avatarJan Delius <me@jandelius.eu>
Tested-by: Jan Delius's avatarJan Delius <me@jandelius.eu>
Reviewed-by: Richard Haeser's avatarRichard Haeser <richard@maxserv.com>
Tested-by: Richard Haeser's avatarRichard Haeser <richard@maxserv.com>
Reviewed-by: default avatarJan Stockfisch <jan.stockfisch@googlemail.com>
Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
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