[imp] Language selection from browser setting

Jan Schneider jan@horde.org
Sat, 22 Dec 2001 16:48:53 +0100


Zitat von Antonio Dias <accdias@sst.com.br>:

> On Fri, 2001-12-21 at 10:42, Jan Schneider wrote:
> > But this would give everyone who has Portugues as the prefered language
> 
> > selected in his browser the Brazilian Portugues translation. I know
> there 
> > are more Brazilian Portugues speakers than "European" Portugues but I
> 
> > assume that most of the people who select just 'pt' want to get
> pt_PT.
> 
> You are correct. 
> 
> One strange thing I noted is that when I remove that trim() call from
> Lang:_map(trim($lang)) IMP works without any problem, showing messages
> in pt_BR as expected. Very, very strange since trim() is suposed to
> remove only trailling spaces from the string.

This is really odd. No idea what may cause this behavior.

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::