View Single Post
Old 31-01-2008, 15:19   #1 (permalink)
Tintin81
Registered User
 
Join Date: Jan 2008
Location: Hamburg, Germany
Posts: 34
What's the BEST way to detect the browser language?

Hi,

I have a website in two languages, English and German:

How can I make sure that each visitor is sent to the correct language version? I've been doing quite a bit of searching but can't decide between a javascript or php based solution.

I need a script that detects the user's browser language and then immediately renders the website in his/her language. However, the user should also be given the opportunity to switch to the other language should s/he wish to.

Any ideas on how to implement this?
  Reply With Quote