airlaid.ru in english
The blib’s idea of autodetecting user-preferred language was implemented in the following way:
if ('en' == $_SERVER['HTTP_ACCEPT_LANGUAGE'] and !$english)
header ('Location: http://'.$_SERVER['SERVER_NAME'].'/english');
So we consider browser-reported language the user-preferred one.
Actually, Opera english, the one I use, reports
enas an Accept-Language, so I’m sent to /english when I enter the site, but I would definitely prefer russian. Is extra logic in style of «if „en“ and not-Opera» necessary, or can we expect that user selected an english browser would equally prefer english content? Mozilla Firefox does a better job here, reporting OS’ language instead of its own, so even with english Firefox I’m left with the root website. IE, no doubt, reports OS’ language either, but that’s because it’s almost part of that OS.
Please check how it works with you.
Should you have any comments either on this behaviour or anything else related, please do not hesitate to send them to me. The translation is not quite perfect, so any corrections or recommendations regarding the quality of english text are also highly appreciated.