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