language redirect

P

peter

hello,

who knows if there is ascript that detects de country or language. I need
this to sent for example dutch people to a dutch site and german to a german
site.

thanx peter
 
D

Dr John Stockton

JRS: In article <[email protected]>, seen
in news:comp.lang.javascript said:
llux.casema.net>...
You could try using the free GeoDirection service at
http://www.geobytes.com/GeoDirection.htm to redirect users based on
their location to a page that has the appropriate language for their
country.

And what language do you assume for the UK, or Switzerland, or Finland,
or Belgium (where EU HQ is); or New York, where the UN HQ is - or even
the USA, which has a large Hispanic component?

Or any University or Laboratory, where one is very likely to find
foreign visitors and students - often using natively-configured
computers?

Or an Internet Cafe?

The ONLY sensible way is to allow the user to choose; and, moreover, to
change that choice freely.
 
S

Stephen

Edo said:
I think it is extra service to redirect visitors based on their browser
language and especially on their preferred language settings (that's why
they set it :).

I belive this should be handled server-side by configuring your server
to handle language-based content-negotiation in HTTP. That way selection
of language content variation is transparent to both the web-site user
and the web-site author. See your web server software documentation for
details.
However I agree that you must always allow visitors to change this, by
offering a link to different languages on each page.

Yes, this is a sound idea.

Regards,
Stephen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,093
Messages
2,570,607
Members
47,226
Latest member
uatas12

Latest Threads

Top