Skip to content

Commit 2b7d550

Browse files
committed
minor #25476 [FrameworkBundle] Remove redundant translation path (yceruto)
This PR was merged into the 3.4 branch. Discussion ---------- [FrameworkBundle] Remove redundant translation path | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - This is only dead code, nothing change because all files are loaded from the `translations/` directory recursively and they override the ones from the bundle. > http://symfony.com/doc/3.4/bundles/override.html#translations > Translations are not related to bundles, but to domains. That means that you can override the translations from any translation file, as long as it is in the correct domain. Commits ------- 16af89045a Remove redundant translation path
2 parents 08f4caa + 4b7ceb5 commit 2b7d550

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1155,9 +1155,6 @@ private function registerTranslatorConfiguration(array $config, ContainerBuilder
11551155
if ($container->fileExists($dir = $bundle['path'].'/Resources/translations')) {
11561156
$dirs[] = $dir;
11571157
}
1158-
if ($container->fileExists($dir = $defaultDir.'/'.$name)) {
1159-
$dirs[] = $dir;
1160-
}
11611158
if ($container->fileExists($dir = $rootDir.sprintf('/Resources/%s/translations', $name))) {
11621159
$dirs[] = $dir;
11631160
}

0 commit comments

Comments
 (0)