예제 #1
0
 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;
 }
예제 #2
0
 public function getAlpha3Code($language)
 {
     return $this->reader->readEntry($this->path, 'meta', array('Alpha2ToAlpha3', $language));
 }
예제 #3
0
 /**
  * Data provider for {@link \Symfony\Component\Intl\Currency::forNumericCode()}.
  */
 public function forNumericCode($numericCode)
 {
     return $this->reader->readEntry($this->path, 'meta', array('NumericToAlpha3', (string) $numericCode));
 }