Re: Help with TranslateBehavior needed.

2008-09-29 Thread jitka (poLK)
Nice hint :-) It is not intended behavior by design, it is just way how current implementation works. Anyway - you're not first one who brought this question up, so I think we will keep it working this way (related test case will be added soon), so you can rely on it without worries. --~--~---

Re: Help with TranslateBehavior needed.

2008-09-29 Thread Linas
Thank your for your quick reply. I've seen your other posts and they were really helpful :) > var $actsAs = array('Translate' => array( >     'title' => 'Titles', >     'abstract' => 'Abstracts', >     'text' => 'Texts' > )); OK, maybe that's worth it, but I'd loose that appreciated abstraction.

Re: Help with TranslateBehavior needed.

2008-09-29 Thread jitka (poLK)
It is price for performance and as simple db query as possible. If you need to know (with multiple preferred locales set) which translatios are missed, you will have to bind hasMany associations for translated fields, like var $actsAs = array('Translate' => array( 'title' => 'Titles', 'ab

Help with TranslateBehavior needed.

2008-09-29 Thread Linas
Hello, I'm trying to use TranslateBehavior for my project. I describe my model like that: class Service extends AppModel { var $name = 'Service'; var $actsAs = array('Translate' => array('title', 'abstract', 'text')); // table services also has fields like id, parent_id, order, cr