Bug #89435
closed
TypoScript objects not processed in translation argruments
Added by Lidia Demin about 5 years ago.
Updated over 4 years ago.
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
- Sprint Focus set to Remote Sprint
- Assignee set to Mathias Brodala
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?
- Status changed from New to Needs Feedback
- Sprint Focus deleted (
Remote Sprint)
- 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
Also available in: Atom
PDF