Issues

ZF-5037: Zend_Form - Translator issue since 1.7.0

Issue Type: Bug Created: 2008-11-23T19:18:16.000+0000 Last Updated: 2009-06-29T20:29:51.000+0000 Status: Closed Fix version(s): Reporter: Andreas Bruckmeier (ubi17) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: - ZF-5937

Attachments:

Description

In Zend_Form 1.6.2 i had to write \

<pre class="highlight">

for each element to disable the translation in forms (form values "must not" be translated).
Now in 1.7, this setting causes the form to completely ignore the values i put in with
\\

When i change setDisableTranslator to false or remove this line entirely, the values are displayed (but translated!!!)

Comments

Posted by Tomas Vesely (wham) on 2008-12-02T07:09:23.000+0000

Just take a look at these two methods:

<pre class="highlight">
public function addMultiOption($option, $value = '')
 {
    $option  = (string) $option;
    $this->_getMultiOptions();
    if (!$this->_translateOption($option, $value)) {
        $this->options[$option] = $value;
    }

     return $this;
}

protected function _translateOption($option, $value)
{
    if ($this->translatorIsDisabled()) {
        return true;
    }
    ...
}

If you disable translator, _translateOption returns true and addMultiOption does nothing. _translateOption should return false.

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts