Actions
Bug #105536
openExtbase AbstractValidator:translateErrorMessage() do not accept normal translateKey anymore
Status:
Under Review
Priority:
Should have
Assignee:
Category:
Extbase
Target version:
Start date:
2024-11-04
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
easy
Is Regression:
Sprint Focus:
Description
The method ranslateErrorMessage() in TYPO3\CMS\Extbase\Validation\Validator\AbstractValidator has parameter 1 to be the translation key and parameter 2 to be the extension name. So when you translated your error message with key and extension name in the past, you get your intended translation. In TYPO3 v13, there is at the very beginning a if condition, which says
if (!str_starts_with($translateKey, 'LLL:')) {
return $translateKey;
}
So normal translation keys can not work anymore.
Actions