Just be aware that there are currently several different ways to go about translating content with Cake because the built-in methods aren't a very good fit for every project. If you just want to translate static strings like form labels, headers, etc. you should be fine without having to jump through too many hoops. If you want to translate database content things get a bit more complex and you'll need to make some choices about the approach you use.
I suggest you have a look at the "P28N" article at the bakery to start. http://bakery.cakephp.org/articles/view/p28n-the-top-to-bottom-persistent-internationalization-tutorial On Wed, May 21, 2008 at 5:01 PM, Nicolás Andrade <[EMAIL PROTECTED]> wrote: > 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 -~----------~----~----~----~------~----~------~--~---
