diff --git a/src/Pluf/L10n.php b/src/Pluf/L10n.php index a984347..83c2240 100644 --- a/src/Pluf/L10n.php +++ b/src/Pluf/L10n.php @@ -831,7 +831,8 @@ class Pluf_L10n $l = array(); $nl = self::getNativeLanguages(); foreach (Pluf::f('languages', array('en')) as $lang) { - $l[mb_convert_case($nl[$lang], MB_CASE_TITLE, 'UTF-8')] = $lang; + $lang2 = substr($lang, 0, 2); + $l[mb_convert_case($nl[$lang2], MB_CASE_TITLE, 'UTF-8')] = $lang; } return $l; }