Issues

ZF-8526: Zend_Form_Element_File label is not translated

Issue Type: Sub-task Created: 2009-12-11T13:13:20.000+0000 Last Updated: 2010-04-16T12:28:33.000+0000 Status: Closed Fix version(s): Reporter: michal kralik (ceecko) Assignee: Christian Albrecht (alab) Tags: - Zend_Form

Related issues: Attachments:

Description

Reopening #ZF-8247 (http://framework.zend.com/issues/browse/ZF-8247)

Zend_Form_Element_File label is not translated when the form element is rendered separately.

example:

<pre class="highlight">
// controller
$form = new Zend_Form();
// setup translator
...
// configure elements
$form->setEnctype('multipart/form-data');
$form->addElement('file', 'myFile', array('label' => 'fileLabel', 'required' => false));
$form->addElement('text', 'myText', array('label' => 'textLabel', 'required' => false));
$form->addElement('submit', 'mySubmit', array('label' => 'submitLabel'));
$this->view->form = $form;

// view
<?= $this->form->renderForm(false) ?>
<?= $this->form->myFile ?>
<?= $this->form->myText ?>
<?= $this->form->mySubmit ?>

"textLabel" and "submitLabel" are correctly translated, "fileLabel" is not translated.

If the form is rendered in such a way:

<pre class="highlight">
// view
<?= $form ?>

then all labels are translated correctly.

Comments

Posted by Christian Albrecht (alab) on 2010-03-16T06:49:15.000+0000

Is this still an issue with 1.10.2? If yes, please provide the part setup translator in your test.

Posted by michal kralik (ceecko) on 2010-03-24T05:39:33.000+0000

It is fixed, you can close this issue. Thank you

Posted by Christian Albrecht (alab) on 2010-04-16T12:28:33.000+0000

Not an Issue any longer.

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