You are here

protected function Translator::initializeCatalogue in Plug 7

Parameters

string $locale:

2 calls to Translator::initializeCatalogue()
Translator::dumpCatalogue in lib/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 lib/Symfony/translation/Translator.php

File

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

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);
}