It seems that is still a problem.

I use the cake console and I extract all the translations in
default.po. How to use this file. How this file work. I download
poEditor and I edit a string but I do not appear in the browser, just
the source.

What should I do.?

On Aug 30, 5:38 pm, candesprojects <[EMAIL PROTECTED]> wrote:
> Thanks,
>
> It works!
>
> On Aug 30, 5:31 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
>
> > On 8/30/07, candesprojects <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I've been search on the cake group but I didn't find the answer to my
> > > problem.
> > > How to use the translate feature in controller or model.
>
> > > I have $this->Session->setFlash('The Book has been saved');
> > > and I want to translate the flash message.
>
> > > $this->Session->setFlash(_('The Book has been saved'));
>
> > >  it's not working please help me
>
> > You need to add the optional 'return' parameter
>
> > $this->Session->setFlash(__('The Book has been saved', true));
>
> > hope that helps.
>
> > --
> > Chris Hartjes
> > Senior Developer
> > Cake Development Corporation
>
> > My motto for 2007:  "Just build it, damnit!"
>
> > @TheBallpark -http://www.littlehart.net/attheballpark
> > @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to