Skip to content

Commit b2425fb

Browse files
committed
[FrameworkBundle] fixed Translator to also load the fallback catalog
1 parent 628e62f commit b2425fb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Translation/Translator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function getLocale()
8080
/**
8181
* {@inheritdoc}
8282
*/
83-
protected function loadCatalogue($locale)
83+
protected function doLoadCatalogue($locale)
8484
{
8585
if (isset($this->catalogues[$locale])) {
8686
return;
@@ -96,7 +96,7 @@ protected function loadCatalogue($locale)
9696
if (!$cache->isFresh()) {
9797
$this->initialize();
9898

99-
parent::loadCatalogue($locale);
99+
parent::doLoadCatalogue($locale);
100100

101101
$content = sprintf(
102102
"<?php use Symfony\Component\Translation\MessageCatalogue; return new MessageCatalogue('%s', %s);",

0 commit comments

Comments
 (0)