How to get an ad hoc translation with Zend_Translate

acartibionari

New Member
I'm using Zend_Translated to translated all my strings\[code\]$translator->_('hello')\[/code\]If my locale is in french this code will print "\[code\]Bonjour\[/code\]". When browsing the french version of the site i'd like to output some german text.\[code\]$translator->_('hello', array(locale=>'en'))\[/code\]This will still output "\[code\]Bonjour\[/code\]" but i'd like "\[code\]Guten Tag\[/code\]"How can I get a translation of a string in another language than the current locale?
 
Back
Top