Thursday, October 23, 2014

Different languages in one page.

Hello all,

i have a question regarding multilingual site. Hopefully someone can give me advice or point me to the right direction.

the situation is:

its jobsearch website in 3 different languages. User can switch between these languages.

Let's say users is using the EN site.  He can create his profile. Until now all fine.

Now is the fun part.  We want to allow create profiles in different languages.
User wants to create his profile in ES, now we want to show the profile form in ES but the rest of the page in his original chosen language (EN)
How to achieve this ? that part of the displayed webpage is in different language than other part ?

for the MODEL data needed for form  is't fine i can  set MODEL->locale ....
but how do i do it for the view rendering that part of view (form) is in different language that rest ?
is there something like afterViewRender change locale ?  or beforeLayoutRender ? 

what are your ideas or suggestions ?

i think i can do it with ajax request and load the form with ajax in correct language, but i would like to avoid using ajax for this part.

many thanks for your help.
martin

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: