Skip to content

Commit ae9e07e

Browse files
committed
[FrameworkBundle] Fix registration of the bundle path to translation
Fixup for 31d7a09
1 parent 39cd93a commit ae9e07e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1349,7 +1349,7 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
13491349
$defaultDir = $container->getParameterBag()->resolveValue($config['default_path']);
13501350
foreach ($container->getParameter('kernel.bundles_metadata') as $name => $bundle) {
13511351
if ($container->fileExists($dir = $bundle['path'].'/Resources/translations') || $container->fileExists($dir = $bundle['path'].'/translations')) {
1352-
$dirs[] = $dir;
1352+
$dirs[] = $transPaths[] = $dir;
13531353
} else {
13541354
$nonExistingDirs[] = $dir;
13551355
}

0 commit comments

Comments
 (0)