Re: How to do i18n better?

From: Date: Tue, 20 Apr 2010 18:50:13 +0000
Subject: Re: How to do i18n better?
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-304263@lists.php.net to get a copy of this message
On Tue, 2010-04-20 at 20:27 +0200, Per Jessen wrote: > Ashley Sheridan wrote: > > > That's the check I did on the last site i worked on (vicestyle.com) > > The user agent string is checked for a language and the site uses > > that. If none is found (bearing in mind that there's no hard and fast > > rule about what can go into a UA string) then it defaults to English. > > The language preference is not set in the UA string, it is set in the > Accept-Language header along with the priority. > > > Links within the site itself allow the user to change their language > > afterwards, and you could store that in a cookie to it remembers their > > choice. > > The standard in Apache is 'prefer-language'. > > > > -- > Per Jessen, Zürich (12.4°C) > > I wasn't aware of that one, but I know most browsers send a language with part of the UA string Thanks, Ash http://www.ashleysheridan.co.uk

« previous php.general (#304263) next »