Project

General

Profile

Actions

Bug #84471

closed

Perform the translation key look-up as it was before #81775

Added by Ralf Zimmermann over 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Form Framework
Target version:
-
Start date:
2018-03-18
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Form elements can be translated through XLF files.
The look-up process searches for translation keys in all given translation files based on the following order:

<formDefinitionIdentifier>.element.<elementIdentifier>.properties.<propertyName>
element.<formElementIdentifier>.properties.<propertyName>
element.<elementType>.properties.<propertyName>

Read more: https://docs.typo3.org/typo3cms/extensions/form/Concepts/FrontendRendering/Index.html#translation

If a form is rendered through the "form" content element, the identifier of the form is modified with a suffix.
The form identifier will be suffixed with "-$contentElementUid" (e.g. "testForm-65").
This rules since #81775

Before #81775, the translation key look-up for a form definition with the identifier 'testForm' and a form element with identifier 'text-1' for the property 'label' was

testForm.element.text-1.properties.label
element.text-1.properties.label
element.Text.properties.label

After #81775 it is (if the form is rendered through the "form" content element and the content element has the uid 1)

testForm-1.element.text-1.properties.label
element.text-1.properties.label
element.Text.properties.label

There is no search for the key 'testForm.element.text-1.properties.label'.
Even if #81775 is marked as breaking, this issue should be treated.


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #81775: EXT:form - add the possibilty to use the same form multiple times on one pageClosed2017-07-03

Actions
Actions

Also available in: Atom PDF