Project

General

Profile

Actions

Bug #98254

open

Subject inferred from option not localized in form finisher

Added by Philipp Holzmann about 2 years ago. Updated about 2 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Form Framework
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 #1

Updated by Oliver Hader about 2 years ago

  • Subject changed from Tx_Form Subject to Subject inferred from option not localized in form finisher
Actions

Also available in: Atom PDF