I would make the data schema design the same or consistent regardless
of the language.
Anytime you introduce a special case to your design you really
complicate the supporting code for reading, writing and displaying the
data. You'll end up doing all kinds of conditional checking for that
one special case.

So the direct answer to your question is yes it can be done, but the
how to do it is going to unnecessarily complicate the code. And from a
users stand point they won't see or appreciate the more complex design
because from their point of view both designs would be viewed the
same.

If you need a default language make this a site setting not a hard
design structure in the schema.

On Jul 20, 3:58 am, M <mask1...@gmail.com> wrote:
> for example, i have posts table and i18n table. posts table already
> have data in english so i created data of the other language in i18n.
>
> i was wondering if there's a way to retrieve data from posts table
> when language is english. or do i have to create english data in i18n
> table?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to