How to automatically select language for my site?

They have: 8 posts

Joined: May 2008

I need to create a website that automatically detect visitor's country so that the language will appear as visitor's language.

He has: 629 posts

Joined: May 2007

No need to detect the country, Anton. Besides, what language do you serve to a Canadian or someone in Luxembourg?

Browsers include an "Accept-Language" field in the response header that tells you the language that the visitor prefers. That's how search engines know not to give you a bunch of references written in Japanese, unless your browser says so.

How you do this depends on what server-side script language you are using. Google "accept-language http header " + "PHP" or whatever.

Cordially, David
--
delete from internet where user_agent="MSIE" and version < 8;

They have: 8 posts

Joined: May 2008

can you give me an example? Or the link to refer this problem.

He has: 629 posts

Joined: May 2007

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.