Hi,

i've trying to get two languages in a single view. I would like to
know if there is a way to achieve using I18n or L10n.

There are static contents,with the __() function, and dynamic contents
from the models.

I get the dinamic content in two languages using a behavior of mine to
complement the Translate Behavior. OK.

But I have no success with static content and the __(). My attempts
was:

I've tried using the L10n class, instantiating it and performing a
I10n->get('loc') before echo data for every language, but no result.

Then, I've tried with the I18n class, instantiating it and trying to
change the locale I18n->l10n->get('loc'). No result.

Given that this is a small part of the application I managed to get it
with a dirty hack (arrays of strings for both languages), but I like
to see if there is a more general solution.



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