getFormProperties now also passes i18n arguments to sprintf if requested.

This commit is contained in:
Colin Kuskie 2010-02-12 11:33:23 -08:00
parent 74ccbef83f
commit d6cbcf4604
3 changed files with 29 additions and 2 deletions

View file

@ -105,6 +105,7 @@ my $called_getProperties;
aspect 'aspect1' => 'aspect1 value';
property 'property1' => (
label => ['webgui', 'WebGUI'],
hoverHelp => ['webgui help %s', 'WebGUI', 'extra'],
options => \&property1_options,
named_url => \&named_url,
);
@ -130,6 +131,7 @@ my $called_getProperties;
$object->getFormProperties('property1'),
{
label => 'WebGUI',
hoverHelp => 'webgui help extra',
options => { one => 1, two => 2, three => 3 },
named_url => 'property1',
},