compile() public method

public compile ( Translator $translator, array &$availableCatalogues, string $locale ) : Symfony\Component\Translation\MessageCatalogueInterface | null
$translator Translator
$availableCatalogues array
$locale string
return Symfony\Component\Translation\MessageCatalogueInterface | null
Example #1
0
 /**
  * {@inheritdoc}
  */
 protected function loadCatalogue($locale)
 {
     if (empty($locale)) {
         throw new InvalidArgumentException("Invalid locale.");
     }
     if (isset($this->catalogues[$locale])) {
         return;
     }
     $this->catalogues = $this->catalogueCompiler->compile($this, $this->catalogues, $locale);
 }