On Wed, 24 Dec 2008, Jean-Marc Lasgouttes wrote:
How do you get this information?
For a site I wrote I had something like that:
<?
$Langue = explode(',',$_SERVER['HTTP_ACCEPT_LANGUAGE']);
$Langue = strtolower(substr(chop($Langue[0]),0,2));
if ($Langue== 'fr'){
include("index_fr.html");
}
else {
include("index_en.html");
}
?>
It is probably possible to do something smarter. I would be surpried
that it is not handled already.
PmWiki does not seem to use it.
I checked, and my browser does indeed supply
_SERVER['HTTP_ACCEPT_LANGUAGE'], so if we want to use the browser's
setting we can.
/Christian
--
Christian Ridderström, +46-8-768 39 44 http://www.md.kth.se/~chr