Feature #99036
closedMake it possible to localize the placeholder and / or default field in TCA
0%
Description
The example in the docs shows that it is possible to use a the title of a field for the placeholder (which can be localized): https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/Type/textDefault.html#placeholder
Link was broken, see https://docs.typo3.org/m/typo3/reference-tca/main/en-us/ColumnsConfig/CommonProperties/Placeholder.html
As far as I know, it is not possible to use localized string notation (e.g. with LLL:EXT:... notation) for the placeholder or the default value .
But, especially when using flexforms, you might often not be using database tables / fields for the fields and there are other fields where it would make sense to show a localized placeholder or a localized default text string .
<settings.msgAfterEmailSent> <TCEforms> <label>...</label> <config> <type>text</type> <!-- it is not possible to localize placeholder --> <!-- <placeholder>LLL:EXT:studipol/Resources/Private/Language/locallang.xlf:settings.msgAfterEmailSent</placeholder> --> <placeholder>You should receive a confirmation email from us in a few minutes. Please check your spam folder, if not.</placeholder> <rows>2</rows> </config> </TCEforms> </settings.msgAfterEmailSent>
Versions¶
- using TYPO3 11.5.18
Updated by Oliver Bartsch over 1 year ago
- Status changed from New to Needs Feedback
Hi Sybille,
I just checked the current behaviour and the placeholder is already localized by the "TcaInputPlaceholders" data provider. Could you please verify this in your setup?
The "default" is not localized, which is correct in my opinion since this will be the actual value, stored in database. This should not depend on user settings, etc.
Updated by Sybille Peters over 1 year ago
- Description updated (diff)
- Status changed from Needs Feedback to Closed
Updated by Sybille Peters over 1 year ago
yes, can confirm using localized string with LLL in "placeholder" works in "main" branch.