Open SZChimp opened 8 months ago
Related to these issues, I think:
Thank you for reporting. What definition is set inside
$GLOBALS['TCA']['tt_content']['columns']['subheader']['l10n_mode']
I'm not sure, if TYPO3 respects this setting, if overwritten in columnsOverrides.
Thank you for reporting. What definition is set inside
$GLOBALS['TCA']['tt_content']['columns']['subheader']['l10n_mode']
I'm not sure, if TYPO3 respects this setting, if overwritten in columnsOverrides.
It is set to prefixLangTitle
in Configuration backend module.
Do you have an update on this issue?
(+ 1) Same problem on several projects and elements :/ And #115 isn't working for those nested elements...
Hi. Could you apply your TCA setup on the fields related to config loaded in backend?
Hi, thx for the fast reply.
New field in tt_content:
'phases' => [
'exclude' => 1,
'label' => 'Phases',
'config' => [
'type' => 'inline',
'foreign_table' => 'tx_XXX_domain_model_phases',
'foreign_label' => 'title',
'foreign_field' => 'parent',
'appearance' => [
'useSortable' => true,
'collapseAll' => true,
'expandSingle' => true,
'showPossibleLocalizationRecords' => true,
],
'maxitems' => 99,
],
],
and in tx_XXX_domain_model_phases.php:
'description' => [
'label' => 'Description',
'l10n_mode' => 'prefixLangTitle', // doesn't work with or without this line
'config' => [
'enableRichtext' => true,
'eval' => 'required',
'type' => 'text',
],
],
Setup:
I hope that helps :) If you are missing an information, just let me know.
After talking to @NarkNiro the bug is known and we work on a fix.
Describe the bug When setting
l10n_mode
toprefixLangTitle
can translating a custom fluid content element in the backend, the fields are not translated correctly, but contain the values of the source language.To Reproduce
Expected behavior Using the translation button in the backend for custom content elements as well as inline relation elements inside those content elements should translate the field values correctly.
Screenshots
TYPO3 Setup
Additional context I also tried setting the
l10n_mode
using overrides with$GLOBALS['TCA']['tt_content']['types']['single-keyfact']['columnsOverrides']['subheader']['l10n_mode'] = 'prefixLangTitle';
or$GLOBALS['TCA']['tx_typo3szassets_domain_model_keyfact']['columns']['subheader']['l10n_mode'] = 'prefixLangTitle';
or$GLOBALS['TCA']['tt_content']['types']['single-keyfact']['columns']['subheader']['l10n_mode'] = 'prefixLangTitle';