#102138XLF files not working for finishers
Description
We have a website that has the default DE language. We configure EXT:form, add the locallang.xlf and de.locallang.xlf files with translations for the finisher.
In my test i used EmailToReceiverFinisher and ConfirmationFinisher. For some reason both finishers use english translations (locallang.xlf) and when i remove EmailToReceiverFinisher from form definition then ConfirmationFinisher works like expected – it shows message from de.locallang.xlf.
Reviews 3
History 415
-
Michael Reuber commented and changed PHP Version
8.18.2 <span data-processor="relativetime" data-value="2023-10-20T12:46:41+00:00" > 10/20/23, 12:46 </span> -
Nikita Hovratov commented <span data-processor="relativetime" data-value="2023-10-24T08:22:53+00:00" > 10/24/23, 08:22 </span>
The documentation states that default behaviour should be the request language: https://docs.typo3.org/c/typo3/cms-form/main/en-us/I/Config/proto/finishersDefinition/finishers/EmailToReceiver.html#options-translation-language
A security patch changed the default value to the “default language”: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68436
I think this might be the issue, why finisher translations started to have the default translation language (english) in every language.
Removing the entry:
translation: language: Defaultrestores the automatic behaviour. This is only possible through manual editing of the YAML though. I believe the select field needs another entry for “Auto”.
-
Gerrit Code Review pushed patch set 1 for main to change 81583 status
NewUnder Review <span data-processor="relativetime" data-value="2023-10-26T15:33:58+00:00" > 10/26/23, 15:33 </span> -
Gerrit Code Review pushed patch set 2 for main to change 81583 <span data-processor="relativetime" data-value="2023-10-27T16:31:03+00:00" > 10/27/23, 16:31 </span>
-
Gerrit Code Review pushed patch set 3 for main to change 81583 <span data-processor="relativetime" data-value="2023-11-03T08:10:46+00:00" > 11/03/23, 08:10 </span>
-
Gerrit Code Review pushed patch set 4 for main to change 81583 <span data-processor="relativetime" data-value="2023-11-16T09:44:52+00:00" > 11/16/23, 09:44 </span>
-
Gerrit Code Review pushed patch set 5 for main to change 81583 <span data-processor="relativetime" data-value="2023-12-07T08:21:43+00:00" > 12/07/23, 08:21 </span>
-
Gerrit Code Review pushed patch set 6 for main to change 81583 <span data-processor="relativetime" data-value="2024-01-27T23:37:06+00:00" > 01/27/24, 23:37 </span>
-
Gerrit Code Review pushed patch set 7 for main to change 81583 <span data-processor="relativetime" data-value="2024-10-18T13:30:36+00:00" > 10/18/24, 13:30 </span>
-
Gerrit Code Review pushed patch set 8 for main to change 81583 <span data-processor="relativetime" data-value="2024-10-26T13:09:18+00:00" > 10/26/24, 13:09 </span>
-
Gerrit Code Review pushed patch set 9 for main to change 81583 <span data-processor="relativetime" data-value="2024-12-05T19:34:10+00:00" > 12/05/24, 19:34 </span>
-
Gerrit Code Review pushed patch set 10 for main to change 81583 <span data-processor="relativetime" data-value="2025-03-28T09:52:54+00:00" > 03/28/25, 09:52 </span>
-
Gerrit Code Review pushed patch set 1 for 13.4 to change 88821 <span data-processor="relativetime" data-value="2025-03-28T09:54:20+00:00" > 03/28/25, 09:54 </span>
-
Nikita Hovratov commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-03-28T10:10:08+00:00" > 03/28/25, 10:10 </span>Applied in changeset commit:bf0666040d9e0a6705c60235fd07c459ca480905.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:37:04+00:00" > 12/02/25, 14:37 </span>
Jakub Zgirski wrote:
> We have a website that has the default DE language. We configure EXT:form, add the locallang.xlf and de.locallang.xlf files with translations for the finisher.
> In my test i used EmailToReceiverFinisher and ConfirmationFinisher. For some reason both finishers use english translations (locallang.xlf) and when i remove EmailToReceiverFinisher from form definition then ConfirmationFinisher works like expected – it shows message from de.locallang.xlf.
I can confirm this behavior