[PHP] User's language settings

2004-11-08 Thread Dmitri Pissarenko
Hello! I have a web-site, part of which is in Russian and another part in English. English and Russian parts are located in different directories. The web-site is static. I want to create a PHP file, which redirects the user from /index.php to /ru/index.html, when his primary language is

Re: [PHP] User's language settings

2004-11-08 Thread Marek Kilimajer
Dmitri Pissarenko wrote: Hello! I have a web-site, part of which is in Russian and another part in English. English and Russian parts are located in different directories. The web-site is static. I want to create a PHP file, which redirects the user from /index.php to /ru/index.html, when his

Re: [PHP] User's language settings

2004-11-08 Thread Daniel Schierbeck
Marek Kilimajer wrote: Dmitri Pissarenko wrote: Hello! I have a web-site, part of which is in Russian and another part in English. English and Russian parts are located in different directories. The web-site is static. I want to create a PHP file, which redirects the user from /index.php to

Re: [PHP] User's language settings

2004-11-08 Thread Skippy
On Mon, 08 Nov 2004 22:37:41 +0100 Marek Kilimajer [EMAIL PROTECTED] wrote: How can I determine user's primary language? $_SERVER[HTTP_ACCEPT_LANGUAGE] - string with user's language preferences. However only a fraction of users willingly set it, so many times it will be on its default