Bug #88936

TCA config.default value can not be localized

Added by Christian Hackl 2 months ago. Updated 2 months ago.

Should have
Target version:
Start date:
Due date:
% Done:


TYPO3 Version:
PHP Version:
TCA localization
Is Regression:
Sprint Focus:


TCA config.default value can not be localized.
It shows not the value from the xlf file instead the complete "LLL:..." string.


'example_field' => [
    'label' => 'LLL:EXT:extKey/Resources/Private/Language/locallang.xlf:label',
    'description' => 'LLL:EXT:extKey/Resources/Private/Language/locallang.xlf:description',
    'config' => [
        'type' => 'input',
        'default' => 'LLL:EXT:extKey/Resources/Private/Language/locallang.xlf:default'


#1 Updated by Josef Glatz 2 months ago

According to the docs, there was no support for LLL strings for ['columns']['*']['config']['default'] = (checked master, 9.5, 8.7, 7.6, 6.2)

I suggest to transform this to a feature. Beside that I think it could get pretty tricky to get the default value based on the current site configuration and activate language in formEngine/TCA/DataHandler.

#2 Updated by Georg Ringer 2 months ago

  • Status changed from New to Needs Feedback

We had this feature request already and it has been declined for a good reason. The used language for the translation would be the one of the backen editor and not the one of the record which is created. As an example: A native german editor will have his backend in german to make the life easier. So if the editor adds content to his blog which is default in english and maybe german and itialian translation, he will get itlian labels into his german or english content? what is the benefit?

It is very easy with the current formengine concept to provide custom default values (take a look at e.g. EXT:news and the default archive date) and there is no problem at all to publish that as extension as well. For the core I would decline the request, can you agree on that?

#3 Updated by Christian Hackl 2 months ago

oh yes you are right, that makes sense - because I did not think about it right - sry. :)
TCA is only for BE... so yeah...

It would be cool anyway, if such values ​​of the TCA, such as a default value which is actually meant for the FE, could be translated accordingly...

but I can imagine that this would not be that easy at the moment ... so closed by me

#4 Updated by Georg Ringer 2 months ago

  • Status changed from Needs Feedback to Rejected

Also available in: Atom PDF