Forum Moderators: coopster

Message Too Old, No Replies

Language Translator

changing the contents into different language

         

ravi

8:22 am on Jun 26, 2008 (gmt 0)

10+ Year Member



Hai,

I am going to build a website,that support for the multiple languages.

When the user choose the different language the site to be changed according to the user chosen language.

I knew that alot of CMS using this feature,but i want to build the site without CMS.

Can anyone help me to give suggestion.

Thanks

ravi

dreamcatcher

10:39 am on Jun 26, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Ravi,

Ideally you need a language file that holds all your websites language. And then for each new language, a translation of the same file. Say, english.php, french.php, german.php etc

Then have a drop down menu or a link for people to choose their language and set a cookie, so that the language is still set when they return. Read from the cookie to determine which language file to load. If cookie isn`t set, load default.

dc

ravi

12:23 pm on Jun 27, 2008 (gmt 0)

10+ Year Member



Thanks alot dreamcatcher,

The Pages are the Dynamic ones,if it is a static content we can do it like the way suggested by you.

Was there any examples for me,will be very useful to me.

Thanks
ravi