Project

General

Profile

Actions

Feature #96893

open

Option to define Translation behavior default value in TCA

Added by cosmoblonde GmbH over 2 years ago. Updated about 2 years ago.

Status:
Needs Feedback
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-02-14
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Hi,

we have a multilanguage website and some contents only exist in a language that's not the base language (having sys_language_uid > 0).

We have now the case, that the base language version of those contents (sys_language_uid = 0) might be created later and gets manually connected to the original content element via the Transl.Orig option.

The problem arises if we have relations in both content elements that have no l10n relationship. The relations are deleted in the content element having sys_language_uid > 0.

With the radio option: Translation behavior > "Custom value" instead of "Value of default language" this problem could easily be fixed, but I can see no TCA configuration option to define "Custom value" as a default. It always uses "Value of default language", which then can be changed but at this point it is already to late to preserve my relations.

Therefore I would like to suggest to extend the TCA options by the feature, to define which default "Translation behavior" should get.

How to reproduce this problem:
In my example, this problem arises with news using content elements.
The base language is German (ID 0) and the 2nd language is English.
If my english news record contains content elements and is manually connected to a german news parent record having also content elements, my english content elements are set to deleted=1.
If Translation behavior > "Custom value" would be set, this error could be prevented.

Thanks for checking!

Actions

Also available in: Atom PDF