示例#1
0
 /**
  * Получить месторасположения меню,
  * опредённые в конфиге
  * @return array
  */
 public function getLocations()
 {
     if (!is_null($this->locationsCache)) {
         return $this->locationsCache;
     }
     foreach ($this->menuConfig->getLocations() as $location) {
         $this->locationsCache[$location['alias']] = $this->translationManager->trans($location['name'], [], $location['trans_domain'] ?: null);
     }
     return $this->locationsCache;
 }
示例#2
0
文件: Dumper.php 项目: octava/cms
 /**
  * Dumps the message catalogue.
  *
  * @param MessageCatalogue $messages The message catalogue
  * @param array $options Options that are used by the dumper
  */
 public function dump(MessageCatalogue $messages, $options = [])
 {
     $this->translationManager->saveTranslations($messages, false, true);
 }