1. You must have two table ex posts and post_i18ns, where second's store all translated content. 2. Setup your model to use Translate behaviors. 3. Setup your controllers to use i18ns ( view content in the primary language, foreign language, view untranslated post, etc) 4. setup your Router for using :lang parametar
On 25 stu, 10:45, hoss7 <[email protected]> wrote: > if i want usehttp://localhost/en/post/indexwhat i am must to do? > > and you say : $data = $this->Post->find('all'); > in post table i must have example : lang_type and if user select this > url i must load all post content with lang_type='en' is this code > work? > and how can i change all links,for example: > my default language is :en > and when user select this linkwww.example.com/fri want all link > change to thiswww.example.com/fr/postandwww.example.com/fr/image > and when user selectwww.example.comall linkwww.example.com//post > andwww.example.com/imagewith default language 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 [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
