[TYPO3-mvc] Localization of validation-errors

Franz Koch typo3.RemoveForMessage at elements-net.de
Fri Feb 19 00:53:10 CET 2010


Hi,

> I just checked the mailinglist and also forge, but didn't found
> something related.
>
> If I see the code right, all validation-errors are not translatable, right?
>
> For example, if I look at StringLengthValidator.php there is e.g. the
> error:
>
> 'The length of the given string less than ' . $minimun . ' characters.'

if it's hardcoded you can't change it, right. This seems to be a missing 
feature. If you like you could add a ticket on forge and if you dare to 
also provide a patch and replace those labels by 
Tx_Extbase_Utility_Localization:translate('key.of.the.label',$this->extensionKey,$replacementVariables);

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list