From af5a77829039115e997b401cd7cb30f922b64f33 Mon Sep 17 00:00:00 2001 From: Mathias Brodala <mbrodala@pagemachine.de> Date: Wed, 25 Oct 2017 11:41:48 +0200 Subject: [PATCH] [BUGFIX] EXT:form - allow field options translation by type Resolves: #82853 Releases: master, 8.7 Change-Id: I7d55cb7a6472d310b2f1d47a9b04014cbd43a832 Reviewed-on: https://review.typo3.org/54472 Tested-by: TYPO3com <no-reply@typo3.com> Reviewed-by: Daniel Lorenz <daniel.lorenz@extco.de> Tested-by: Daniel Lorenz <daniel.lorenz@extco.de> Reviewed-by: Andreas Fernandez <typo3@scripting-base.de> Reviewed-by: Joerg Boesche <typo3@joergboesche.de> Reviewed-by: Henning Liebe <h.liebe@neusta.de> Reviewed-by: Pawel Cieslik <p.cieslik@macopedia.pl> Tested-by: Pawel Cieslik <p.cieslik@macopedia.pl> Reviewed-by: Bjoern Jacob <bjoern.jacob@tritum.de> Tested-by: Bjoern Jacob <bjoern.jacob@tritum.de> Reviewed-by: Susanne Moog <susanne.moog@typo3.org> Tested-by: Susanne Moog <susanne.moog@typo3.org> --- typo3/sysext/form/Classes/Service/TranslationService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/typo3/sysext/form/Classes/Service/TranslationService.php b/typo3/sysext/form/Classes/Service/TranslationService.php index 79d36dc10079..b87956afe23d 100644 --- a/typo3/sysext/form/Classes/Service/TranslationService.php +++ b/typo3/sysext/form/Classes/Service/TranslationService.php @@ -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); -- GitLab