ZF2-491: Zend\Validate translations out of date

Issue Type: Bug Created: 2012-08-22T21:08:16.000+0000 Last Updated: 2012-10-08T20:14:54.000+0000 Status: Closed Fix version(s): Reporter: Ralf Eggert (ralf) Assignee: Ben Scholzen (dasprid) Tags: - Zend\I18n

  • Zend\Validator

Related issues: Attachments:


A couple of issues:

  1. I noticed that the validation message for Zend\Validator\Csrf is missing in the translation files under /resources/languages.
  2. There are messages for a validator Zend_Validate_Ccnum that does not exist in Zf2
  3. The messages for Zend_Validate_CreditCard have changed if I compare them with Zend\Validator\CreditCard
  4. Other issues may also be in there

I guess the whole file needs to be updated and all translation files as well.

Example file:…

Anyway, should the file not be called Zend_Validator.php?


Posted by Ralf Eggert (ralf) on 2012-08-22T21:12:44.000+0000

What about using the text identifier from the class instead of the message? Example

Instead of using

<pre class="highlight">
    "Value is required and can't be empty" => "Value is required and can't be empty",

we could use

<pre class="highlight">
    "isEmpty" => "Value is required and can't be empty",

Posted by Ralf Eggert (ralf) on 2012-08-22T21:44:29.000+0000

Translations for EmailAddress and Regex Validator also have changed and are not translated anymore.

Posted by Ralf Eggert (ralf) on 2012-08-24T15:01:38.000+0000

Same problem with the messages from Zend\Validate\Db\Abstract

Posted by Ralph Schindler (ralph) on 2012-10-08T20:14:54.000+0000

This issue has been closed on Jira and moved to GitHub for issue tracking. To continue following the resolution of this issues, please visit:

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.