$val =
urlencode($val);
$id =
strtr('Zend_LocaleL_' .
$locale . '_' .
$path . '_' .
$val,
['-' => '_', '%' => '_', '+' => '_'
]);
if (!self::
$_cacheDisabled && ($result = self::
$_cache->
load($id))) { return unserialize($result);
} $temp =
[];
switch (strtolower($path)) { case 'language':
$temp = self::
_getFile($locale, '/ldml/localeDisplayNames/languages/language', 'type'
);
break;
case 'script':
$temp = self::
_getFile($locale, '/ldml/localeDisplayNames/scripts/script', 'type'
);
break;
case 'territory':
$temp = self::
_getFile($locale, '/ldml/localeDisplayNames/territories/territory', 'type'
);
if ($value === 1
) { foreach ($temp as $key =>
$value) { if ((is_numeric($key) === false
) and ($key != 'QO'
) and ($key != 'QU'
)) {