Forum Moderators: open
My web site is using by UK and US people. I want my web site content to switch according to user's country. (I don't want redirect user's to two sperate sites)
eg. "color" and "colour" should be change accordingly
Please give me an idea.
Thanks
Anusha
The only objection would be how visitors from the US will behave when they see the content written in UK English.
[edited by: BlobFisk at 1:49 pm (utc) on Dec. 20, 2004]
So why not choose to be whichever would fit your image?
[edited by: BlobFisk at 12:21 pm (utc) on Dec. 20, 2004]
If you really believe you need to change to suit the audience, then checking HTTP_ACCEPT_LANGUAGE should help. If it contains 'en-gb' send them the English page, otherwise send them the US page.
If your server is on (I believe) Apache, you can also name files such as index.html.en, index.html.fr etc... and the French speakers will get the .fr page when requesting 'index.html' and the English get the .en page. There is probably a different second extension that differentiates between US and GB English.
There is a problem of course; many UK English have their computers set up to the US language - but if any complain, you can tell them that their computer is set up to the US language and that changing the setting will alter your page spellings.