I plan a project with a special i18n implimentation.
Their won' t be a default language, their are records witch every user
can access unattached of his language. But each record can have
informations individual of the language. I give a sample.
Main Table:
id: 1
name: BMW
Translation Table:
id:1
foreigne_key: 1
locale: eng
about: BMW is a german car producer
id: 2
foreigne_key: 1
locale: deu
about: BMW ist ein deutscher Autohersteller
A search Result for find() on this Table should return:
Car
-> id: 1
-> name: BMW
Translation
-> 1
-> -> locale: eng
-> -> about: BMW is a german car producer
-> 2
-> -> locale: deu
-> -> about: BMW ist ein deutscher Autohersteller
If I have a Main record without Translations, I want the main record
to be retrieved and the Translation array should be empty.
When I'm right, this isn't directly able with Translate behavior...
Does anyone know, how to solve this?
Best regards, Sebastian
--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment