[Bug 906] Changed - locale issues with MSIE6

bugs@bugs.horde.org bugs@bugs.horde.org
Sat, 16 Mar 2002 10:07:01 -0400


http://bugs.horde.org/show_bug.cgi?id=906

*** shadow/906	Sat Mar 16 09:45:14 2002
--- shadow/906.tmp.27551	Sat Mar 16 10:07:01 2002
***************
*** 40,42 ****
--- 40,53 ----
  HTTP_ACCEPT_LANGUAGE header with the uppercased locale entries in $nls. But 
  I'll clean the code up a bit so that we can do this in one step because we can 
  rely on the $nls keys being in the ll_CC format.
+ 
+ ------- Additional Comments From dom@http.org  03/16/02 10:07 -------
+ Yes, it's true that you later perform a case-insensitive match, but this is on 
+ the aliases only. As 'en_GB' is not an alias, a match will not be found and 
+ $trans_lang is returned instead.
+ 
+ The next part of Lang::select then performs isValid($lang) which will fail 
+ because 'en_gb' != 'en_GB'.
+ 
+ It then goes on to match 'en' as an alias instead, and _map() then returns the 
+ alias for 'en' which is set in lang.php as 'en_US'.