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.

I'm not sure we want that though.. is this standard behaviour? I'd be annoyed if the browser didn't show the native language of the page, but then again, if if you force the browser to prefer a certain language maybe you deserve what you get.

It is the setting `preferred languages' in firefox. Some native language versions are set up to
prefer some language. For example, google acts on it (I think).

What do you think of the current change? (Fell free to translate 'Japanese' into japanese)

You mean Japnese?

JMarc

Reply via email to