Project

General

Profile

Actions

Bug #90997

open

DataHandler tries to translate relations that are set as non-translatable

Added by Jonas Eberle about 4 years ago. Updated about 3 years ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
DataHandler aka TCEmain
Target version:
-
Start date:
2020-04-10
Due date:
% Done:

0%

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

Description

Given a TCA like this

table1.php

return [
    'ctrl'      => [
        ...
        'languageField'            => 'sys_language_uid',
        'transOrigPointerField'    => 'l10n_parent',
        'transOrigDiffSourceField' => 'l10n_diffsource',
    ],
    ...
    'columns'   => [        
        'table2' => [
            'label'     => 'Label',
            'l10n_mode' => 'exclude',
            'config'    => [
                'type'          => 'inline',
                'foreign_table' => 'table2',
                'foreign_field' => 'title',
            ],
        ],
    ],
];

table2.php

<?php declare(strict_types=1);
return [
    'ctrl'      => [
        ...
        // no language_field
    ],
    ...
    'columns'   => [
        'title' => [ ... ]
    ]
];

I get : Localization failed; "languageField" and "transOrigPointerField" must be defined for the table table2 when I try to translate table1.

I would assume from https://docs.typo3.org/m/typo3/reference-tca/master/en-us/Ctrl/Index.html that such a configuration is possible. At least I cannot see that these fields are required.


Files

Screenshot_20200410_152808.png (7.79 KB) Screenshot_20200410_152808.png Jonas Eberle, 2020-04-10 15:29
Actions #1

Updated by Vladimir Falcon about 3 years ago

I am having exactly the same problem.

TYPO3 V 9.5.26
PHP 7.4

Does anyone knows how to correct this problem?

Actions

Also available in: Atom PDF