Bug #79983
closedTCA l10n_mode="exclude" copies value from default language to localized version in TYPO3 8.6
0%
Description
In powermail we need a possibility to set a field value for field marker.
I want to have the value in default language but an empty value for translation.
So documenation to l10n_mode (see https://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Index.html#l10n-mode) says for value exclude:
... Excluded fields will not be copied when a language-copy is made. May have frontend implications.
If I localize a field in powermail, the value is still copied to the localized record.
I created a very simple extension, to attach to this ticket to give you a quick example.
Just localize a record and you will see that the value of the field with l10n_mode=exclude is also copied.
In TYPO3 7.6 the value was empty in the localization.
Files
Updated by Frans Saris over 7 years ago
This is the new location behavior of TYPO3 8.
All fields are filled and the datahandler makes sure the exclude fields are kept in sync with the default language
Updated by Christian Kuhn over 7 years ago
- Status changed from New to Rejected
Yes. l10n_mode=exclude now means the value in the language overlay record is always identical to the value of the default language, the DataHandler keeps that in sync. You probably need to look up in TCA instead, if that field has l10n_mode exclude set, and if yes, act accordingly.
Updated by Alex Kellner over 7 years ago
Ok, I understood that the documentation is outdated. Nevertheless, the localized value is not synced in TYPO3 8.6.1 if I change the default value afterwards: