Actions
Bug #83387
closedsysExt:form does not fully support arguments
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2017-12-19
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
8
PHP Version:
7.1
Tags:
form translation argument
Complexity:
Is Regression:
Sprint Focus:
Description
$this->processTranslationChain($translationKeyChain, $language) should always take arguments.
Reproduce the bug:
Programmatically change the translation of an element (e.g. a label)
$page->setRenderingOption('translation', [ 'translationFile'=>'LLL:EXT:my_extension/Resources/Private/Language/forms.xlf', 'arguments'=>['label'=>['LOREM']] ]);
Add translation in forms.xlf with %s
Example:
<trans-unit id="element.page-1.properties.label" approved="yes"> <source>My Argument : %s</source> </trans-unit>
Expected Result:
"My Argument : LOREM"
Actual result:
"My Argument : %s"
How to make the argument appear:
public function translateFormElementValue(RootRenderableInterface $element, array $propertyParts, FormRuntime $formRuntime) { ... $this->processTranslationChain($translationKeyChain, $language, ['my Arguments Here']) ... }
And the documentation is very misleading.
Updated by Ralf Zimmermann almost 7 years ago
This feature is already available in TYPO3 v9 (not in TYPO3 v8).
https://review.typo3.org/#/c/52951/
https://docs.typo3.org/typo3cms/extensions/form/Concepts/FrontendRendering/Index.html#form-element-translation-arguments-are-supported
Updated by Ralf Zimmermann over 6 years ago
- Complexity deleted (
medium) - Sprint Focus deleted (
Remote Sprint)
Updated by Ralf Zimmermann over 6 years ago
- Status changed from New to Closed
This feature is already available in TYPO3 v9 (not in TYPO3 v8).
If you think this is not correct, please open the ticket again.
Actions