8000 [Translation] avoid creating cache files for fallback locales. · symfony/symfony@f94c2e4 · GitHub
[go: up one dir, main page]

Skip to content

Commit f94c2e4

Browse files
committed
[Translation] avoid creating cache files for fallback locales.
1 parent 85ae039 commit f94c2e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Translation/Translator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ private function loadFallbackCatalogues($locale)
420420

421421
foreach ($this->computeFallbackLocales($locale) as $fallback) {
422422
if (!isset($this->catalogues[$fallback])) {
423-
$this->loadCatalogue($fallback);
423+
$this->initializeCatalogue($fallback);
424424
}
425425

426426
$fallbackCatalogue = new MessageCatalogue($fallback, $this->catalogues[$fallback]->all());

0 commit comments

Comments
 (0)
0