zend framework2 - Translate placeholder ZF2 -


how translate placeholder in zend framework 2?

i have form item, this:

 $this->add(array(          'name' => 'email',          'attributes' => array(              'type'  => 'email',              'class' => 'form-control',              'placeholder' => 'email address',              'required' => 'required'          ),      )); 

in view call this:

<?php echo $this->formrow($form->get('email'));?> 

if using zendskeletonapplication or similar can following on view:

    $translator = $this->plugin('translate')->gettranslator();     $this->plugin('form_row')->settranslator($translator); 

then

    echo $this->formrow($form->get('email')); 

Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -