Project

General

Profile

Actions

Bug #89435

closed

TypoScript objects not processed in translation argruments

Added by Lidia Demin about 5 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Form Framework
Target version:
-
Start date:
2019-10-16
Due date:
% Done:

0%

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

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

forge89435.zip (1.36 KB) forge89435.zip Mathias Brodala, 2019-11-21 11:02
2019-11-21_11-04.png (9.41 KB) 2019-11-21_11-04.png Mathias Brodala, 2019-11-21 11:04
Actions #1

Updated by Susanne Moog about 5 years ago

  • Sprint Focus set to Remote Sprint
Actions #2

Updated by Mathias Brodala about 5 years ago

  • Assignee set to Mathias Brodala

Updated by Mathias Brodala about 5 years ago

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?

Actions #4

Updated by Mathias Brodala about 5 years ago

  • Status changed from New to Needs Feedback
Actions #5

Updated by Björn Jacob almost 5 years ago

  • Sprint Focus deleted (Remote Sprint)
Actions #6

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

Actions

Also available in: Atom PDF