Exemple #1
0
 /**
  * {@inheritdoc}
  */
 public function getLocales()
 {
     try {
         return $this->localeProvider->getLocales();
     } catch (MissingResourceException $e) {
         return;
     }
 }
 public function testGetNameDefaultLocale()
 {
     Locale::setDefault('de_AT');
     $names = $this->dataProvider->getNames('de_AT');
     foreach ($names as $locale => $name) {
         $this->assertSame($name, $this->dataProvider->getName($locale));
     }
 }
Exemple #3
0
 /**
  * {@inheritdoc}
  */
 public function getLocales()
 {
     try {
         return parent::getLocales();
     } catch (MissingResourceException $e) {
         return null;
     }
 }