$translate->getMessages( new Zend_Locale('de') );
// -> Warning: Illegal offset type in /xxx/framework.zend.com/Zend/Translate/Adapter.php on line 333
/**
* Returns all available translations from this adapter
* If no locale is given, the actual language will be used
* If 'all' is given the complete translation dictionary will be returned
*
* @param string|Zend_Locale $locale (optional) Language to return the messages from
* @return array
*/
public function getMessages($locale = null)
{
if ($locale == 'all') {
return $this->_translate;
}
if (empty($locale) or !$this->isAvailable($locale)) {
$locale = $this->_options['locale'];
}
return $this->_translate[$locale];
}
Comments
Posted by Thomas Weidner (thomas) on 2008-06-28T03:55:09.000+0000
Your problem is not that the locale is given as instance. The language you are requesting does not exist.
Posted by Thomas Weidner (thomas) on 2008-06-28T04:19:43.000+0000
Fixed with r9816
Posted by Thomas Weidner (thomas) on 2008-07-26T11:41:30.000+0000
Fixed within branch 1.5
Posted by Wil Sinclair (wil) on 2008-09-02T10:39:23.000+0000
Updating for the 1.6.0 release.