[imp] Language selection from browser setting
Jan Schneider
jan@horde.org
Thu, 20 Dec 2001 21:35:14 +0100
Zitat von Antonio Dias <accdias@sst.com.br>:
> I was looking the source code of horde wishing to find out why my
> language browser option was not being respected by IMP. I found in
> horde/lib/Lang.php at line 162 that we have :
>
> $lang = Lang::_map(trim($lang));
>
> Should not it be:
>
> $lang = Lang::_map(strtr(trim($lang), '-', '_'));
>
> Since some browsers send, say, "pt-BR" in place of "pt_BR"?
No, this replacement is done elsewhere in Lang::select().
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
::::::::::::::::::::::::::::::::::::::::::::::