Hi,
I am new to i18n and, until now, I was adding display groups to my forms
this way:
$form->addDisplayGroup(
array('field1', 'field2', 'field3'),
'global',
array(
'displayGroupClass' => 'My_DisplayGroup',
'legend' => 'My legend'
)
);
I setup a Zend_Translate object with the gettext adapter and I am using
POEdit to write translations. Unfortunately, one can not enter keys
manually in POEdit: it has to find them automatically in source files.
I configured it with keywords like "setLabel", "setDescription" and
"setLegend". But in the code above, there is no "setLegend" function.
So, I would like to rewrite that code to something like:
$displayGroup = new My_DisplayGroup($options);
$displayGroup->setLegend('My legend');
But I can't find the proper way to instantiate my custom display group
(the correct options to pass to it).
Could somebody help me?
--
Guillaume ORIOL
Software engineer
Technema