Issues

ZF-5145: Zend_Validate_File_Count default messages are not using correct english for error messages

Description

The message temples and error constants for errors given in Zend_Validate_File_Count are as follows: protected $_messageTemplates = array( self::TOO_MUCH => "Too much files, maximum '%max%' are allowed but '%count%' are given", self::TOO_LESS => "Too less files, minimum '%min%' are expected but '%count%' are given" ); const TOO_MUCH = 'fileCountTooMuch'; const TOO_LESS = 'fileCountTooLess';

I would propose they be changed to protected $_messageTemplates = array( self::TOO_MANY => "Too many files, maximum '%max%' are allowed but '%count%' are given", self::TOO_FEW => "Too few files, minimum '%min%' are expected but '%count%' are given" ); const TOO_MANY = 'fileCountTooHigh'; const TOO_FEW = 'fileCountTooLow';

The constants could possibly be named different, like fileTooManyFiles and fileTooFewFiles or something like that.

Comments

This is a BC break and can not be done without breaking all existing applications.

Constant changes are not allowed.

But you can already change any given default message with your own message and even translation.

Seems like a nice issue for 2.0?

Edit: I don't seem to be able to set this issue to 'postponed'?

Fixed with r18683