diff --git a/Finder/TranslationFinder.php b/Finder/TranslationFinder.php index 076a6b6d..d31c0e23 100644 --- a/Finder/TranslationFinder.php +++ b/Finder/TranslationFinder.php @@ -109,9 +109,9 @@ private function getLocations() if (file_exists($dir = dirname($r->getFilename()).'/../../Resources/translations')) { $locations[] = $dir; - } else { + } elseif (file_exists($dir = dirname($r->getFilename()).'/../Resources/translations')) { // Symfony 2.4 and above - $locations[] = dirname($r->getFilename()).'/../Resources/translations'; + $locations[] = $dir; } }