/** * Returns detailed informations from the variant table * If no detail is given a complete table is returned * * @param string $locale Normalized locale * @param boolean $invert Invert output of the data * @param string|array $detail Detail to return information for * @return array */ public static function getDisplayVariant($locale, $invert = false, $detail = null) { if ($detail !== null) { return Locale::getDisplayVariant($locale); } else { $list = ZFLocale::getLocaleList(); foreach ($list as $key => $value) { $list[$key] = Locale::getDisplayVariant($key); } if ($invert) { array_flip($list); } return $list; } }
/** * {@inheritdoc} */ public function getLanguages() { return array_keys($this->locale->getLocaleList()); }