On Wed, 24 Dec 2008, Jean-Marc Lasgouttes wrote:

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");
}
?>

Perfect, I can give that a try.

What should happen when there is no translated page? Should we automatically show the english page? If we do show the english page, I'm at the moment not sure how to automatically revert to the japanese page when following a link.

Hmm.. maybe we're overdoing this. Isn't it enough for now with just the possibility to select between using the english or a translated version of the web pages?

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).

And you think the LyX web site should act on it? (See above regarding overdoing it..)

/Christian

--
Christian Ridderström, +46-8-768 39 44            http://www.md.kth.se/~chr

Reply via email to