You can do something like this :
public static function getStatusList()
{
return array(
self::STATUS_OPEN => __('status_open', null, 'catalogue'),
self::STATUS_PENDING => __('status_pending', null, 'catalogue'),
);
}
On Mon, Dec 15, 2008 at 10:59 AM, Fabian Spillner <[email protected]
> wrote:
>
> I don´t find the usual way to tell my sfWidgetFormSelectRadio, that it
> should use the i18n translation for its labels.
>
> public static $sex = array('m' => 'male', 'f' => 'female', 'no
> detail');
>
> $this->widgetSchema['sex'] = new sfWidgetFormSelectRadio(array
> ('choices' => self::$sex));
> }}}
>
> And in the template:
>
> <?php echo $form['sex']->render() ?>
>
>
> If it is a bug, I will create a ticket.
> >
>
--
Thomas Rabaix
Internet Consultant
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en
-~----------~----~----~----~------~----~------~--~---