[BUGFIX] EXT:form - allow field options translation by type 50/54950/2
authorMathias Brodala <mbrodala@pagemachine.de>
Wed, 25 Oct 2017 09:41:48 +0000 (11:41 +0200)
committerSusanne Moog <susanne.moog@typo3.org>
Wed, 6 Dec 2017 20:00:12 +0000 (21:00 +0100)
Resolves: #82853
Releases: master, 8.7
Change-Id: I7d55cb7a6472d310b2f1d47a9b04014cbd43a832
Reviewed-on: https://review.typo3.org/54950
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Susanne Moog <susanne.moog@typo3.org>
Tested-by: Susanne Moog <susanne.moog@typo3.org>
typo3/sysext/form/Classes/Service/TranslationService.php

index 6a41582..88f614c 100644 (file)
@@ -343,6 +343,7 @@ class TranslationService implements SingletonInterface
                 foreach ($translationFiles as $translationFile) {
                     $translationKeyChain[] = sprintf('%s:%s.element.%s.%s.%s.%s', $translationFile, $formRuntime->getIdentifier(), $element->getIdentifier(), $propertyType, $property, $optionValue);
                     $translationKeyChain[] = sprintf('%s:element.%s.%s.%s.%s', $translationFile, $element->getIdentifier(), $propertyType, $property, $optionValue);
+                    $translationKeyChain[] = sprintf('%s:element.%s.%s.%s.%s', $translationFile, $element->getType(), $propertyType, $property, $optionValue);
                 }
 
                 $translatedValue = $this->processTranslationChain($translationKeyChain, $language);