ZF-5715: Zend_Validate_Abstract, _translatorDisabled

Issue Type: Improvement Created: 2009-02-08T02:55:58.000+0000 Last Updated: 2009-03-08T12:28:00.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Piotr Kabacinski (kabot) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate

Related issues: Attachments:


In Zend_Form and Zend_Form_Element there is possibility to turn off translator with method setDisableTranslator(). My propose is to add such a functionality to method Zend_Validate_Abstract::getTranslator like in below code

<pre class="highlight">
    public function getTranslator()
        if ($this->translatorIsDisabled()) {
            return null;

        if (null === $this->_translator) {
            return self::getDefaultTranslator();

        return $this->_translator;

By default translator could be enabled but when you disable translation in Zend_Form_Element it will be disabled in validator also.


Posted by Thomas Weidner (thomas) on 2009-03-08T12:27:50.000+0000

New feature added with r14249

Have you found an issue?

See the Overview section for more details.


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

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