Two tips:
1. Output the variables like this in your view <?php debug($this-
>data); ?> it then should look more like the example I gave you.
2. Try using 'eng' instead of 'en' or don't set it at all. The array
would be empty if data is there I guess, haven't tried this yet
Also population of the translationsXXX arrays do not depend on setting
the locale config or something like this. They will always be
populated with all translations. I think???

Success.



On Jul 10, 10:12 pm, zwobot <[EMAIL PROTECTED]>
wrote:
> Thanks for your answer oleonav, unfortunately my arrays look a little
> bit different from yours. I have made the behaviour names unique but
> my array lacks the [Content] array in the TransContent (TransTitle or
> whatever) array:
>
> This is $this->data handed over to the edit view after setting locale
> to 'deu'.
> array(3) {
>   ["Post"]=>
>   array(6) {
>     ["id"]=>
>     string(2) "11"
>     ["created"]=>
>     string(19) "2007-07-10 22:02:18"
>     ["modified"]=>
>     string(19) "2007-07-10 22:02:18"
>     ["locale"]=>
>     string(3) "deu"
>     ["title"]=>
>     string(8) "Testtitel auf deutsch"
>     ["body"]=>
>     string(8) "Testbody auf deutsch"
>   }
>   ["TransTitle"]=>
>   array(1) {
>     [0]=>
>     array(6) {
>       ["id"]=>
>       string(2) "25"
>       ["locale"]=>
>       string(3) "deu"
>       ["i18n_content_id"]=>
>       string(2) "25"
>       ["model"]=>
>       string(4) "Post"
>       ["row_id"]=>
>       string(2) "11"
>       ["field"]=>
>       string(5) "title"
>     }
>   }
>   ["TransBody"]=>
>   array(1) {
>     [0]=>
>     array(6) {
>       ["id"]=>
>       string(2) "26"
>       ["locale"]=>
>       string(3) "deu"
>       ["i18n_content_id"]=>
>       string(2) "26"
>       ["model"]=>
>       string(4) "Post"
>       ["row_id"]=>
>       string(2) "11"
>       ["field"]=>
>       string(4) "body"
>     }
>   }
>
> }
>
> setting locale to 'en' produces an empty data array.


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