Simply because I'm new to Cake and I didn't know about Gettext
implementation.

I've added a link to del.icio.us about Gettext+CakePHP to read after
finishing what I'm doing in this week.


Thanks for your time!

n.


On Wed, May 21, 2008 at 5:38 PM, b logica <[EMAIL PROTECTED]> wrote:

>
> Why aren't you just using the built-in gettext functions with
> localised po files?
>
> On Wed, May 21, 2008 at 4:33 PM, Nicolás Andrade
> <[EMAIL PROTECTED]> wrote:
> > Hi guys; I'm trying to develop a Translation Helper -there are a lot
> around,
> > but I need some special features-
> >
> >
> > My idea is writing something like that in View:
> >
> > User controller, Login Action:
> >
> > echo $translationHelper->Translate('USERNAME');
> >
> >
> > And then, somewhere, have the folder structure /User/Login/ with:
> > english.txt
> > french.txt
> > spanish.txt
> >
> >
> > Where I will have
> > english.txt => USERNAME|Username
> > french.txt => USERNAME|Nom d'utilisateur
> > spanish.txt => USERNAME|Nombre de usuario
> >
> >
> > The rest is truly imaginable and deductible.
> >
> >
> > My questions is how to know which Controller and Action the helper's
> method
> > is called from.
> >
> >
> > If it's not possible, I can try to include these parameters from
> somewhere
> > else; but the best way is if the helper knows them.
> >
> > Any ideas?
> >
> >
> > Thanks!!
> >
> >
> > n.
> >
> >
> > >
> >
>
> >
>


-- 
Nicolás Andrade
www.nicoandra.com.ar
www.treintaguita.com.ar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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