I'm muddling my way through getting translation from DB content working. I've read through everything I could find at least 2 or 3 times now but still there are big gaps. I've been trying to get Jean-Claude's MYTranslateBehavior working but am unsure if, well, it's working properly.
The model I'm using is called Content and, for now, has just $title, $slug, and $body. The model's DB table has columns for these, but they're set DEFAULT NULL because nothing will ever be placed in there. Is that so? I can add a new entry; this seems to work alright. But, after doing a find() the data comes back like: Array ( [0] => Array ( [0] => Array ( [id] => 1 [created] => 2008-04-14 23:26:28 [modified] => 2008-04-14 23:26:28 [title] => [slug] => [body] => ) [I18n] => Array ( [title] => The Title [slug] => the_title [body] => The Body ) [Content] => Array ( [locale] => eng [title] => [slug] => [body] => ) ) ) Does this make sense? Also, I'm seeing notices from Translate's afterFind(): Notice (8): Undefined index: I18n__title [CORE/cake/libs/model/behaviors/translate.php, line 213] Notice (8): Undefined index: I18n__slug [CORE/cake/libs/model/behaviors/translate.php, line 213] Notice (8): Undefined index: I18n__body [CORE/cake/libs/model/behaviors/translate.php, line 213] I haven't a clue if this is important or what the point of this block is: $value = ife(empty($results[$key]['I18n__'.$field]['content']), '', $results[$key]['I18n__'.$field]['content']); $results[$key][$model->alias][$field] = $value; unset($results[$key]['I18n__'.$field]); --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---