My question refers to the default "assets"-TCA-field. For the assets-field allowLanguageSynchronization
is set to 'true' and disablePrependAtCopy
for sys_file_reference is active.
This configuration works as expected when the content element is translated for the first time. [Translate to XY] is not visible in the translated content element.
However, when I add another image to the content element for sys-lang 0 after the initial translation, [Translate to XY] is visible for sys-lang 1.
How can I stop TYPO3 from adding [Translate to XY] to the metadata fields?
Configuration:
Version: TYPO3 9.5.5
'allowLanguageSynchronization' is set to true:
$GLOBALS['TCA']['tt_content']['columns']['assets']['config']['behaviour']['allowLanguageSynchronization'] = true;
I also disabledPrependAtCopy for assets:
TCEMAIN.table.sys_file_reference {
disablePrependAtCopy = 1
}
What I tried:
- For sys-lang 0: Add image to a content element which uses the assets field (e.g. text-media).
- Add metadata for image (e.g. title).
- Translate content element to sys_lang 1 ([Translate to XY] is not visible as expected).
- Go back to sys-lang 0: add a second image to content element and save the changes.
- Switch to sys-lang 1: metadata of new file now contains [Translate to XY] -> How can I prevent that?