works like a charm !

On Fri, Feb 27, 2009 at 4:23 PM, Crafty_Shadow <[email protected]> wrote:

>
> For i18n you should edit the representative form class;
> that is to say, in the main form, let's call it
> StaticPageForm.class.php you need:
>
> $this->embendI18n(array('en','fr')); //embends English and French
> //set labels so it's clearer
> $this->widgetSchema->setLabel('en', 'English');
> $this->widgetSchema->setLabel('fr', 'French');
>
>
> Then in StaticPageI18nForm.class.php
>
> $this->widgetSchema['content'] = new sfWidgetFormTextareaTinyMCE etc
>
>
> On Feb 27, 4:29 pm, Denis Fingonnet <[email protected]> wrote:
> > Does the tinyMCE widget used for a I18n field ?
> >
> > Because I managed to make the widget work without changing anything.
> > I was doing this for a translated field called texte :
> >         $this->widgetSchema['texte'] = new
> > sfWidgetFormTextareaTinyMCE(array(
> >           'width'  => 550,
> >           'height' => 350,
> >           'config' => 'theme_advanced_disable:
> "anchor,image,cleanup,help"',
> >         ), array(
> >             'class' => 'tinyMCE'
> >         ));
> >
> > But if I do this :
> >         $this->widgetSchema['fr']['texte'] = new
> > sfWidgetFormTextareaTinyMCE(array(
> >           'width'  => 550,
> >           'height' => 350,
> >           'config' => 'theme_advanced_disable:
> "anchor,image,cleanup,help"',
> >         ), array(
> >             'class' => 'tinyMCE'
> >         ));
> >
> > It works very well.
> > So it is not a bug but a lack of documentation about I18n and widget or I
> > didn't get it...
> >
> > And a bad error message.
> >
> > On Fri, Feb 27, 2009 at 2:28 PM, Denis Fingonnet <[email protected]
> >wrote:
> >
> >
> >
> > > I'll keep an eye on it.
> >
> > > Thank you
> >
> > > On Fri, Feb 27, 2009 at 1:43 PM, Crafty_Shadow <[email protected]
> >wrote:
> >
> > >> Ticket with patch created, the rest is up to fabien:
> >
> > >>http://trac.symfony-project.org/ticket/5986
> >
> > > --
> > > Denis Fingonnet
> >
> > --
> > Denis Fingonnet
> >
>


-- 
Denis Fingonnet

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to