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