You are here

private function Translator::loadFallbackCatalogues in Plug 7

1 call to Translator::loadFallbackCatalogues()
Translator::initializeCatalogue in lib/Symfony/translation/Translator.php

File

lib/Symfony/translation/Translator.php, line 443

Class

Translator
Translator.

Namespace

Symfony\Component\Translation

Code

private function loadFallbackCatalogues($locale) {
  $current = $this->catalogues[$locale];
  foreach ($this
    ->computeFallbackLocales($locale) as $fallback) {
    if (!isset($this->catalogues[$fallback])) {
      $this
        ->doLoadCatalogue($fallback);
    }
    $current
      ->addFallbackCatalogue($this->catalogues[$fallback]);
    $current = $this->catalogues[$fallback];
  }
}