Try to read this tutorial "p28n component":
http://bakery.cakephp.org/articles/view/p28n-the-top-to-bottom-persistent-internationalization-tutorial

Plug the code of the p28n tutorial in your app, with the book example
for the translate behavior.

Now the i28n behavihor will work for the curret locale, and your added
records will be added according to the locale.



On 24 Set, 10:24, bunyan <[EMAIL PROTECTED]> wrote:
> Is there a way to manage several translations for an article (for
> example) using Translate behavior in Cake 1.2?
>
> I'll have English, Russian and Chinese languages in my app, and I want
> a possibility to set all language versions for an article - e.g. all
> aricles must have Russian version, but some can also have English or
> Chinese or both. Then if a user chooses a language, only the
> corresponding language versions of articles must be shown if they
> exist.
>
> As for interface, this could be done either by having a form with
> three sets of fields for article's title, content etc in each language
> or one form with fields for Russian version and links like "Add
> <language> version" which lead to forms for another language. But how
> can this be implemented using i18n and Translate features of Cake?
>
> I've found an example (something about books) of Translate behavior
> usage, but it just allows to add and edit one book for a specific
> language.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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