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


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-20-2008, 03:08 PM
Junior Member
 
Join Date: May 2008
Posts: 2
Default autoload language vars depending on user locale and then pass it to the view

I'd like for Zend to automatically load a language file depending on their user locale.

This doesn't seem to work:
PHP Code:
$translate = new Zend_Translate('array''/language'null, array('scan' => Zend_Translate::LOCALE_DIRECTORY)); 
However this works fine (it translates my form labels just fine):
PHP Code:
$translate = new Zend_Translate('array''/language/english.php'); 
Is there anyway to make Zend load this automatically, like the manual says?

And also, once i got the translation object. How do I get the values from it so I can pass it to the view object?
Thanks.
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 03:14 PM.