ZF-11665: The translated message in the folder of resources to Zend_Validate_Db_Abstract is different from that declared in the class.
Description
On resource Zend_Validate.php is as follows:
... // Zend_Validate_Db_Abstract "No record matching %value% was found" => "Não foram encontrados registros para %value%", "A record matching %value% was found" => "Um registro foi encontrado para %value%", ...
And on Zend_Validate_Db_Abstract.php is as follows:
...
protected $_messageTemplates = array(
self::ERROR_NO_RECORD_FOUND => "No record matching '%value%' was found",
self::ERROR_RECORD_FOUND => "A record matching '%value%' was found",
);
...
There are only two methods to resolve this problem.
1 - Change the message on the array in all appeals to:
... // Zend_Validate_Db_Abstract "No record matching '%value%' was found" => "Não foram encontrados registros para '%value%'", "A record matching '%value%' was found" => "Um registro foi encontrado para '%value%'", ...
2 - Change the message on the array in Zend_Validate_Db_Abstract.php (I would do this):
...
protected $_messageTemplates = array(
self::ERROR_NO_RECORD_FOUND => "No record matching '%value%' was found",
self::ERROR_RECORD_FOUND => "A record matching '%value%' was found",
);
...
Comments
Posted by Thomas Weidner (thomas) on 2011-08-13T17:48:00.000+0000
Issue not reproduceable.
In trunk, branch and also within release 1.11.10 both messages from the abstract validator and the original resource file are equal.
See http://framework.zend.com/code/filedetails.php/… and http://framework.zend.com/code/filedetails.php/… for details.
Posted by João Paulo de Oliveira Faria (jpfaria) on 2011-08-15T14:37:48.000+0000
On the repository http://framework.zend.com/svn/framework/… the problem still persists.