Project

General

Profile

Actions

Bug #97529

closed

Flexform selectSingle doesn't render translations

Added by !frappant webfactory over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-05-02
Due date:
% Done:

0%

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

Description

Our mediaType field is a selectSingle with two values.
While Updating TYPO3 from 9 to 11 we came across this issue.

We updated the field type from "select" to "selectSingle" but the translations are not being rendered if I switch the type to "check" just for fun the output of the options are correctly translated.

The given XLF File and Key are correct or else even the type "check" wouldn't work.

<mediaType>
<TCEforms>
<label>Type</label>
<description>LLL:EXT:frp_template/Resources/Private/Language/locallang_db.xlf:tt_content.frptemplate_hero.pi_flexform.media.description</description>
<onChange>reload</onChange>
<config>
<type>selectSingle</type>
<items type="array">
<numIndex index="0" type="array">
<numIndex index="0">LLL:EXT:frp_template/Resources/Private/Language/locallang_db.xlf:tt_content.frptemplate_hero.pi_flexform.slider</numIndex>
<numIndex index="1">slider</numIndex>
</numIndex>
<numIndex index="1" type="array">
<numIndex index="0">LLL:EXT:frp_template/Resources/Private/Language/locallang_db.xlf:tt_content.frptemplate_hero.pi_flexform.video</numIndex>
<numIndex index="1">video</numIndex>
</numIndex>
</items>
<default>slider</default>
</config>
</TCEforms>
</mediaType>


Files

Screenshot 2022-05-02 at 15.35.33.png (130 KB) Screenshot 2022-05-02 at 15.35.33.png !frappant webfactory, 2022-05-02 13:35
FlexFormHero.xml (18.8 KB) FlexFormHero.xml !frappant webfactory, 2022-05-02 13:36
Actions #1

Updated by Bastian Bringenberg over 2 years ago

  • Project changed from 9 to TYPO3 Core
  • Category deleted (Development)
  • TYPO3 Version set to 11

moved to right project.
set TYPO3 Version.

Actions #2

Updated by Georg Ringer over 2 years ago

  • Status changed from New to Needs Feedback

please use

<type>select</type>
<renderType>selectSingle</renderType>

and it should work fine

Actions #3

Updated by !frappant webfactory over 2 years ago

Georg Ringer's suggestion works
Thank you


<type>select</type>
<renderType>selectSingle</renderType>

Actions #4

Updated by Georg Ringer over 2 years ago

  • Status changed from Needs Feedback to Closed

closing issue as it is not a bug in core

Actions

Also available in: Atom PDF