Index: trunk/tests/Zend/Validate/DigitsTest.php =================================================================== --- trunk/tests/Zend/Validate/DigitsTest.php (revision 21125) +++ trunk/tests/Zend/Validate/DigitsTest.php (working copy) @@ -120,6 +120,7 @@ } /** + * @group ZF-9032 * @return void */ public function testInvalidValueResultsInProperValidationFailureMessages() @@ -127,7 +128,7 @@ $this->assertFalse($this->_validator->isValid('#')); $messages = $this->_validator->getMessages(); $arrayExpected = array( - Zend_Validate_Digits::NOT_DIGITS => '\'#\' contains not only digit characters' + Zend_Validate_Digits::NOT_DIGITS => '\'#\' contains characters which are not digits; but only digits are allowed' ); $this->assertThat($messages, $this->identicalTo($arrayExpected)); } Index: trunk/library/Zend/Validate/Digits.php =================================================================== --- trunk/library/Zend/Validate/Digits.php (revision 21125) +++ trunk/library/Zend/Validate/Digits.php (working copy) @@ -49,7 +49,7 @@ * @var array */ protected $_messageTemplates = array( - self::NOT_DIGITS => "'%value%' contains characters which are no digits; but only digits are allowed", + self::NOT_DIGITS => "'%value%' contains characters which are not digits; but only digits are allowed", self::STRING_EMPTY => "'%value%' is an empty string", self::INVALID => "Invalid type given, value should be string, integer or float", ); Index: trunk/resources/languages/en/Zend_Validate.php =================================================================== --- trunk/resources/languages/en/Zend_Validate.php (revision 21125) +++ trunk/resources/languages/en/Zend_Validate.php (working copy) @@ -26,7 +26,7 @@ return array( // Zend_Validate_Alnum "Invalid type given, value should be float, string, or integer" => "Invalid type given, value should be float, string, or integer", - "'%value%' contains characters which are non alphabetic and no digits" => "'%value%' contains characters which are non alphabetic and no digits", + "'%value%' must contain only alphabetic and digit characters" => "'%value%' must contain only alphabetic and digit characters", "'%value%' is an empty string" => "'%value%' is an empty string", // Zend_Validate_Alpha