Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-25-2008, 09:02 AM
Junior Member
 
Join Date: Jan 2008
Posts: 1
Default Form error messages in multiple languages in view

Hello ,
I need to implement translation, however I am clueless as to how I would provide them in the view. Can anyone update one this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-26-2008, 05:08 AM
Junior Member
 
Join Date: Mar 2008
Posts: 5
Default

So far I couldn't figure out how to translate the error messages (perhaps its just the wrong array key), but may be this will help you:

PHP Code:
$this->translate =  new Zend_Translate('array'APP_PATH 'de.php'$this->language);
Zend_Registry::set('Zend_Translate'$this->translate);
Zend_Validate_Abstract::setDefaultTranslator($this->translate);
Zend_Form::setDefaultTranslator($this->translate); 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:53 AM.