Actions
Bug #98254
openSubject inferred from option not localized in form finisher
Status:
New
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
Start date:
2022-09-03
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
7.4
Tags:
Complexity:
medium
Is Regression:
Sprint Focus:
Description
The Subject of the Tx_Form's Finisher can be translate, but not if it's an option of a select field.
For a workaround, we added this to the translationChain in translateFinisherOption of the TranslationService
foreach ($translationFiles as $translationFile) {
if (!empty($originalFormIdentifier)) {
$translationKeyChain[] = sprintf('%s:%s.finisher.%s.%s', $translationFile, $originalFormIdentifier, $finisherIdentifier, $optionKey);
}
$translationKeyChain[] = sprintf('%s:%s.finisher.%s.%s', $translationFile, $formRuntime->getIdentifier(), $finisherIdentifier, $optionKey);
//added with option value by INDIZ
$translationKeyChain[] = sprintf('%s:%s.finisher.%s.%s.%s', $translationFile, $formRuntime->getIdentifier(), $finisherIdentifier, $optionKey,$optionValue);
//end of changes...
$translationKeyChain[] = sprintf('%s:finisher.%s.%s', $translationFile, $finisherIdentifier, $optionKey);
}
Actions