Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Language question
- John Larronn
February 17, 2009, 8:23 pm
rate this thread
I am building a website which among others has three pages of text.
The first page is written in Dutch, the second page in English and the third
page in both Dutch and English.
Do I have to write at top of the first page lang=NL, on top of the second
page lang=EN-GB, and on the third page lang=NL and lang=EN-GB?
Or should I do this in a different way?
Thanks very much indeed.
Re: Language question
The browser will display whatever page is sent. Setting lang=NL or
whatever at the top of the page will do nothing.
You need to server the correct page in the first place, depending on the
language the user wants. You can do this by
1). Allowing them to select the language on your home page and tracking
which pages to server, i.e. via a cookie and server-side language, or
2). Again with a server-side language, look at the language(s) the user
has his browser set to prefer and server them there.
The first option is generally the more preferred.
Remove the "x" from my email address
JDS Computer Training Corp.