I need to access zend translate in my models. The simplest way to do it is
to get it from registry Zend_Registry::get('Zend_Translate').

But I have one class in my models which have static options for select
element, like

protected $options = array(
     self::NOTES =>
Zend_Registry::get('Zend_Translate')->translate('Primedbe, pohvale...'),
     self::MARKETING => 'Marketing',
     self::COOPERATION => 'Saradnja',
     self::HELP => 'Pomoć',
     self::MISSING_BRAND => 'Nedostaje marka automobila',
     self::OTHER => 'Ostalo'
    );

This is wrong, because PHP says syntax error, unexpected '(', expecting ')'

I need messages to be under 'translate' keyword, so poedit can pick them,
how can I achieve this with such classes?

Regards,
Saša Stamenković

Reply via email to