Zend_Translate with multidimesional arrays

Mike007

New Member
I'm using Zend_Translate in my application with the array adapter.My code looks like this:\[code\]$english = array( 'city' => 'City', 'countryCode' => 'Country Code');$translate = new Zend_Translate( array( 'adapter' => 'array', 'content' => $english, 'locale' => 'en' ));\[/code\]Is there a way to use multimensional arrays, in order to split the translation strings into categories like the below example?\[code\] $english = array( 'country' => array( 'city' => 'City', 'countryCode' => 'Country Code' ) );\[/code\]So I could call something like this:\[code\]$translate->setLocale('en');echo $translate->_('country/city');\[/code\]
 
Top