public function getNames($displayLocale = null) { if (null === $displayLocale) { $displayLocale = Locale::getDefault(); } $names = $this->reader->readEntry($this->path, $displayLocale, array('Names')); if ($names instanceof \Traversable) { $names = iterator_to_array($names); } $collator = new \Collator($displayLocale); $collator->asort($names); return $names; }
public function getAlpha3Code($language) { return $this->reader->readEntry($this->path, 'meta', array('Alpha2ToAlpha3', $language)); }
/** * Data provider for {@link \Symfony\Component\Intl\Currency::forNumericCode()}. */ public function forNumericCode($numericCode) { return $this->reader->readEntry($this->path, 'meta', array('NumericToAlpha3', (string) $numericCode)); }