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.

--~--~---------~--~----~------------~-------~--~----~
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