[Tickets #9107] Typo in partial language detection

bugs at horde.org bugs at horde.org
Thu Jun 24 11:25:52 UTC 2010


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/9107
------------------------------------------------------------------------------
  Ticket             | 9107
  Created By         | jacob at internet24.de
  Summary            | Typo in partial language detection
  Queue              | Horde Framework Packages
  Version            | Git master
  Type               | Bug
  State              | Unconfirmed
  Priority           | 1. Low
  Milestone          |
  Patch              |
  Owners             |
------------------------------------------------------------------------------


jacob at internet24.de (2010-06-24 07:25) wrote:

The code in framework/Nls/lib/Horde/Nls.php doesn't recognise
language variations (e.g. a browser set to accept language de_AT will
not see German text by default) because of a typo in Nls.php, line 77.

                 /* In case there's no full match, save our best guess. Try
                  * ll_LL, followed by just ll. */
                 if (!isset($partial_lang)) {
                     $ll_LL = Horde_String::lower(substr($lang, 0, 2))  
. '_' . Horde_String::upper(substr($lang, 0, 2));
                     if (self::isValid($ll_LL)) {
****                        $partial_lan*>g<* = $ll_LL;     ****
                     } else {
                         $ll = self::_map(substr($lang, 0, 2));
                         if (self::isValid($ll))  {
                             $partial_lang = $ll;
                         }
                     }
                 }







More information about the bugs mailing list