Click to See Complete Forum and Search --> : How to do a multilingual Website?


Moldarin
06-14-2006, 09:19 AM
Hi,

I am to build a multilingual Website using PHP 4 on an Apache server.

The Website will be available in English (en) and Norwegian bokmål (nb-NO).

I want to show the default page in english with a URL like this: http://domain.com/index.en and if the reader accept Norwegian (nb-NO OR just NO OR NB) they will be directed to http://domain.com/index.no. And then again http://domain.com/products.en and http://domain.com/produkter.no... And so on.

But I am unsure how to check if the user accept Norwegian (in their browsers header, right?) and if they do not; show them the English version.

Please provide code examples.:thumbsup:

Fang
06-15-2006, 02:50 PM
Content Negotiation (http://www.gerv.net/hacking/language-selection/)