You are here

protected function Translator::initializeCatalogue in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/translation/Translator.php \Symfony\Component\Translation\Translator::initializeCatalogue()

Parameters

string $locale:

2 calls to Translator::initializeCatalogue()
Translator::dumpCatalogue in vendor/symfony/translation/Translator.php
This method is public because it needs to be callable from a closure in PHP 5.3. It should be made protected (or even private, if possible) in 3.0.
Translator::loadCatalogue in vendor/symfony/translation/Translator.php

File

vendor/symfony/translation/Translator.php, line 297

Class

Translator
Translator.

Namespace

Symfony\Component\Translation

Code

protected function initializeCatalogue($locale) {
  $this
    ->assertValidLocale($locale);
  try {
    $this
      ->doLoadCatalogue($locale);
  } catch (NotFoundResourceException $e) {
    if (!$this
      ->computeFallbackLocales($locale)) {
      throw $e;
    }
  }
  $this
    ->loadFallbackCatalogues($locale);
}