6.0.0-beta1
7/9/25

[#9107] Typo in partial language detection
Summary Typo in partial language detection
Queue Horde Framework Packages
Queue Version Git master
Type Bug
State Resolved
Priority 1. Low
Owners jan (at) horde (dot) org
Requester jacob (at) internet24 (dot) de
Created 06/24/2010 (5494 days ago)
Due 07/31/2010 (5457 days ago)
Updated 06/24/2010 (5494 days ago)
Assigned
Resolved 06/24/2010 (5494 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
06/24/2010 11:55:03 AM Jan Schneider Assigned to Jan Schneider
State ⇒ Resolved
 
06/24/2010 11:25:51 AM jacob (at) internet24 (dot) de Comment #1
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Due ⇒ 07/31/2010
Summary ⇒ Typo in partial language detection
Type ⇒ Bug
State ⇒ Unconfirmed
Reply to this comment
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;
                         }
                     }
                 }

Saved Queries