Gernott / mask

TYPO3 Extension Mask
https://www.facebook.com/typo3mask
GNU General Public License v2.0
130 stars 86 forks source link

tt_content label LLL:EXT:path/to/locallang.xlf:key [mask 7.0.14] #422

Closed zwenn closed 3 years ago

zwenn commented 3 years ago

Hop, someone can help.

First: The labels from mask elements in tt_content are not listed in $GLOBALS['TCA'] ['tt_content']['columns']['tx_mask_element']['label'], so I can not override these labels with TCA/Overrides/tt_content.php

tca-no-label

I have locallang.xlf files for translation and want to set the labels via these files. This works fine for nested elements and palettes.

Second: If I write LLL:EXT:path/to/locallang.xlf:key direct into the input field of the label, mask converts these statement to the vale of the key after saving. The next time I got to this element and edit something else and save again, mask writes the value of the key of the lang file to mask.json and translation for this label does not work anymore.

mask-json-diff

Thank your for helping. Sven

nhovratov commented 3 years ago

Hi @zwenn, First: Mask sets the labels via TSconfig. This is needed for fields, which are reused in other elements so they can have different labels.

Second: Eventhough it is not officially supported, i can see how translatable labels can easily work. And they did before! I create a patch, so it works like before.