slurpey
05-16-2008, 09:57 PM
Hi,
I've been trying many language detection scripts but failed so far to achieve this:
I want to detect the language of the browser and if it starts with
en
(such as in en-ca, en-uk, en-us, etc) it redirects to a specific page.
Otherwise, for all other languages, it just goes on loading.
All my atemps worked either on firefox or IE but never on both when I tested by changing my language preference.
I need to send all english speaking traffic to a specific website, while any other language is welcome to visit the page(s). So I'd like to make an <include> at the begining that would filter out all english speaking. I can make the include, but not the script ;)
All help is super welcomed.
Thanks,
Lloyd
I've been trying many language detection scripts but failed so far to achieve this:
I want to detect the language of the browser and if it starts with
en
(such as in en-ca, en-uk, en-us, etc) it redirects to a specific page.
Otherwise, for all other languages, it just goes on loading.
All my atemps worked either on firefox or IE but never on both when I tested by changing my language preference.
I need to send all english speaking traffic to a specific website, while any other language is welcome to visit the page(s). So I'd like to make an <include> at the begining that would filter out all english speaking. I can make the include, but not the script ;)
All help is super welcomed.
Thanks,
Lloyd