Ezilon.com - Target Your Audience, be Seen in Your Region

How to automatically select language for my site?

You are viewing this site as a guest. Join our community to get your questions answered and share knowledge. Active members may advertise and ask for a website critique.

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: 356 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
--
"Old web developers don't die, they degrade gracefully..."

They have: 8 posts

Joined: May 2008

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

He has: 356 posts

Joined: May 2007

Subscribe to this feed: Syndicate content