Sry, I didn't quite get it...
I want to load the content in all languages of the Model I'm in, no an
associated one!
I need a function which load all/the choosen languages of the record
I'm editing
e.g. localhost/blogs/edit/2
the printed find-method should something like this:
Array
(
[0] => Array
(
[Blog] => Array
(
[id] => 2
[locale] => en
[name] => English blogtitle
)
)
[1] => Array
(
[Blog] => Array
(
[id] => 2
[locale] => de
[name] => German blogtitle
)
)
)
How can I achieve that?
thx
Aurelius
On 4 Mrz., 19:18, "jitka (poLK)" <[email protected]> wrote:
> Yes, you can use TranslateBehavior, if you don't mind that callbacks
> are not fired on associated models. It means - any behavior's
> callbacks can work correctly only on primary model, so it does not
> translate virtual fields for associated models.
>
> Possible workaround for this issue is
> here:http://groups.google.com/group/cake-php/browse_thread/thread/9b7e6090...
>
> As of displaying or editing multiple translations at once, yes it is
> possible - by default it picks up locale from your Config.language
> setting, but you can set YourModel->locale to array of locales and
> then.... ;) you know, read test case of TranslateBehavior.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---