Просмотр исходного кода

[ZF-9032] Zend_Validate:

- improved error message

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21115 44c647ce-9c0f-0410-b52a-842ac1e357ba
thomas 16 лет назад
Родитель
Сommit
3a5b77b833
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      library/Zend/Validate/Digits.php
  2. 1 1
      resources/languages/en/Zend_Validate.php

+ 1 - 1
library/Zend/Validate/Digits.php

@@ -49,7 +49,7 @@ class Zend_Validate_Digits extends Zend_Validate_Abstract
      * @var array
      */
     protected $_messageTemplates = array(
-        self::NOT_DIGITS   => "'%value%' contains not only digit characters",
+        self::NOT_DIGITS   => "'%value%' contains characters which are no 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",
     );

+ 1 - 1
resources/languages/en/Zend_Validate.php

@@ -72,7 +72,7 @@ return array(
 
     // Zend_Validate_Digits
     "Invalid type given, value should be string, integer or float" => "Invalid type given, value should be string, integer or float",
-    "'%value%' contains not only digit characters" => "'%value%' contains not only digit characters",
+    "'%value%' contains characters which are no digits; but only digits are allowed" => "'%value%' contains characters which are no digits; but only digits are allowed",
     "'%value%' is an empty string" => "'%value%' is an empty string",
 
     // Zend_Validate_EmailAddress