[Translator] fixed recursion when using a fallback that is the same as the locale
This commit is contained in:
parent
e3f6b4fc0d
commit
64d44fbb93
@ -180,7 +180,9 @@ class Translator implements TranslatorInterface
|
||||
$this->loadCatalogue($fallback);
|
||||
}
|
||||
|
||||
$this->catalogues[$locale]->addFallbackCatalogue($this->catalogues[$fallback]);
|
||||
if ($fallback != $locale) {
|
||||
$this->catalogues[$locale]->addFallbackCatalogue($this->catalogues[$fallback]);
|
||||
}
|
||||
}
|
||||
|
||||
private function computeFallbackLocale($locale)
|
||||
|
Reference in New Issue
Block a user