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 |
State ⇒ Resolved
Fix typo (
Bug #9107).http://git.horde.org/diff.php/framework/Nls/lib/Horde/Nls.php?rt=horde-git&r1=97fd203dcaaf5ddf7c9c2252eb44ac76e8d84846&r2=88f42a7360a9ee1c72dcd44dbc650fba2583b3d8
Priority ⇒ 1. Low
Patch ⇒ No
Milestone ⇒
Queue ⇒ Horde Framework Packages
Due ⇒ 07/31/2010
Summary ⇒ Typo in partial language detection
Type ⇒ Bug
State ⇒ Unconfirmed
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;
}
}
}