$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'
)) { unset($temp[$key]);
} } } elseif ($value === 2
) { foreach ($temp as $key =>
$value) { if (is_numeric($key) or ($key == 'QO'
) or ($key == 'QU'
)) { unset($temp[$key]);
} } } break;