PDA

View Full Version : How to allow reader to chose their language


zelonght
11-05-2006, 04:40 AM
I noticed Vivvo support many language.

I tried to use ajax funtion to help user to change the language but the problem is: when one changes it effects all other users

My user comes from 2 contries with 2 differents languages. How can I make a drop menu or links for them to change the language themself. Remember when I used phpbb forum, there is a mod with use cookies to help guest to chose the language they want.

Is this possible to do with vivvo. I am nearly null with php coding. But if you can tell me the way or already-made-mod I can go for it.

Thank for any help

boccio
11-07-2006, 05:21 PM
You can let users choose the language easily. If you do it from Admin, you set the language for all users, but to let them choose individually just reference it from home page (or any other) via link like this:
www.yoursite.com/?lang=english (http://www.yoursite.com/?lang=english)
www.yoursite.com/?lang=spanish (http://www.yoursite.com/?lang=spanish)

etc...

The list of languages is in /include/lang

zelonght
11-08-2006, 12:29 AM
Oh, it work perfectly. Thank you very much