Feature #6456

Customization/localization of validator errors

Added by Arjen Hoekema over 11 years ago. Updated over 9 years ago.

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


Estimated time:
12.00 h
PHP Version:
Has patch:


Add the possibility to customize the validation error messages. For example: in Zend Framework each validator has a list of "message templates" and for the several types of errors each validator defines its own constants. These messages contain placeholders (value) which are replaced.

In the future this could be attached to a localization/translator object.

Related issues

Related to TYPO3.Flow - Feature #28399: Validation message and code should be configurable for bundled validatorsNeeds Feedback2011-07-22

Related to TYPO3.Flow - Feature #33970: Add translation files for bundled validator error messagesResolvedKarsten Dambekalns2012-02-16


Updated by Robert Lemke over 11 years ago

  • Status changed from New to Accepted
  • Target version set to 1.0 alpha 9
  • Start date deleted (2010-02-12)
  • Estimated time set to 12.00 h

Updated by Robert Lemke over 11 years ago

  • Target version deleted (1.0 alpha 9)

Updated by Robert Lemke over 11 years ago

  • Category changed from Validation to I18n

This will mainly be provided by the new localization functionality Karol is working on.


Updated by Karsten Dambekalns almost 10 years ago

  • Category deleted (I18n)
  • Status changed from Accepted to New
  • Has patch set to No

Updated by Karsten Dambekalns over 9 years ago

  • Category set to Validation

Updated by Bastian Waidelich over 9 years ago

With the current version and #33970 applied this works quite nice. The respective Fluid code looks something like:

<f:form.validationResults for="{property}">
    <f:for each="{validationResults.errors}" as="error">
        {error -> f:translate(key: error.code, arguments: error.arguments, package: 'TYPO3.FLOW3', source: 'ValidationErrors')}

There is also an issue for making the validator code & message overridable (#33970) for even more flexibility. So I suggest to close this issue.


Updated by Christian Müller over 9 years ago

  • Status changed from New to Closed

Also available in: Atom PDF