Hello mate, yeah I'm taking up on a project I didn't started, they have 4 languages. lots of tables ( it's a CMS ) They first thought all articles will be translated only to figure out later it's impossible. So when a visitor browse the website in a language ( say english ) and he founds arabic articles he gets confused. and that is understood. I should probably edit the behavior to behave as expected for some specific models.
On Oct 11, 6:27 pm, AD7six <[email protected]> wrote: > On Oct 11, 8:25 pm, AD7six <[email protected]> wrote: > > > > > > > > > > > On Oct 11, 4:43 am, oth <[email protected]> wrote: > > > > Hello, > > > > Is there a way to implement this scenario: > > > > Post is written in locale EN, if locale FR is selected, and there is > > > no FR translation available for the Post, return nothing. > > > Currently it returns the default fields found in the posts table. > > > > I'd guess that first, there should be a way to specify the locale of > > > the post upon saving. Consider that done. > > > How would it go about telling cake not to grab the default fields and > > > just return nothing ? > > > of course one would loop through the result and do some tests then > > > unset() the record, and alter paging params accordingly but this is a > > > waste of cycles. > > > > Any thoughts are welcome > > > In that circumstance does the translate behavior actually help you > > (from your description it sounds like you are using it) > > And also from the title which I blatantly didn't read > > :) > > AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
