I created:
$this->Category->locale = array('fre', 'eng');
$categories = $this->Category->find('all');

pr($categories); // return array only with default language - fre

$this->set('categories', $categories);

/* How use $delete? */
$delete = array(
    array('locale' => 'fre'),
    array('foreign_key' => 1, 'field' => 'title', 'locale' => 'eng'),
    array('foreign_key' => 1, 'field' => 'title'));

Sorry, but my english is weak...

On 18 Lut, 23:49, "jitka (poLK)" <[email protected]> wrote:
> In doubts how to use something, read test cases - they're not only
> proving that old bugs are away, but also showing how are things
> supposed to be 
> used.https://trac.cakephp.org/browser/branches/1.2.x.x/cake/tests/cases/li...
> Read this method - it deletes few translations first, and then reads
> translated db content using array $locale.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to