[Bug 906] Changed - locale issues with MSIE6
Sat, 16 Mar 2002 10:07:01 -0400
*** 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 email@example.com 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'.