Bug #89435
closedTypoScript objects not processed in translation argruments
0%
Description
I followed the documentation to pass a typolink as argument to a frontend label without success. Instead of the URL the string "Array" is inserted into the label place holder.
The problem seems to be that the TypoScript configuration array for the translation arguments isn't handled in any way before merging it with the label in TYPO3\CMS\Form\Service\TranslationService::translate:
if (is_array($arguments) && !empty($arguments) && $value !== null) {
$value = vsprintf($value, $arguments);
} else {
...
Files
Updated by Mathias Brodala about 5 years ago
- File forge89435.zip forge89435.zip added
- File 2019-11-21_11-04.png 2019-11-21_11-04.png added
I am not able to reproduce the issue.
Please see the attached archive which contains a form definition with a checkbox, a matching TypoScript and a translation file. Put everything in fileadmin/form_definitions
and add @import 'fileadmin/form_definitions/*.typoscript'
to your TypoScript setup. If you insert this form somewhere and load it in the frontend you will see something like this:
(That HTML is escaped here is a different, known, issue.)
So the translation argument generated via Typolink is properly injected into the translation label for the checkbox.
Can you add more details and your own form definition so we are able to reproduce your issue?
Updated by Mathias Brodala about 5 years ago
- Status changed from New to Needs Feedback
Updated by Riccardo De Contardi over 4 years ago
- Status changed from Needs Feedback to Closed
- Assignee deleted (
Mathias Brodala)
No feedback since the last 90 days => closing this issue.
If you think that this is the wrong decision or experience the issue again and have more information about how to reproduce your problem, please reopen it or open a new issue with a reference to this one.
Thank you and best regards