Skip to content

Commit ba3476c

Browse files
committed
Update default translations path
1 parent b40c84d commit ba3476c

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ private function addTranslatorSection(ArrayNodeDefinition $rootNode)
679679
->scalarNode('formatter')->defaultValue('translator.formatter.default')->end()
680680
->scalarNode('default_path')
681681
->info('The default path used to load translations')
682-
->defaultValue('%kernel.project_dir%/config/translations')
682+
->defaultValue('%kernel.project_dir%/translations')
683683
->end()
684684
->arrayNode('paths')
685685
->prototype('scalar')->end()

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ protected static function getBundleDefaultConfig()
257257
'logging' => true,
258258
'formatter' => 'translator.formatter.default',
259259
'paths' => array(),
260-
'default_path' => '%kernel.project_dir%/config/translations',
260+
'default_path' => '%kernel.project_dir%/translations',
261261
),
262262
'validation' => array(
263263
'enabled' => !class_exists(FullStack::class),

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/Fixtures/yml/full.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ framework:
4242
translator:
4343
enabled: true
4444
fallback: fr
45-
default_path: '%kernel.root_dir%/config/translations'
45+
default_path: '%kernel.root_dir%/translations'
4646
paths: ['%kernel.root_dir%/Fixtures/translations']
4747
validation:
4848
enabled: true

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ public function testTranslator()
503503
'->registerTranslatorConfiguration() finds translation resources in custom paths'
504504
);
505505
$this->assertContains(
506-
strtr(__DIR__.'/config/translations/test_default.en.xlf', '/', DIRECTORY_SEPARATOR),
506+
strtr(__DIR__.'/translations/test_default.en.xlf', '/', DIRECTORY_SEPARATOR),
507507
$files,
508508
'->registerTranslatorConfiguration() finds translation resources in default path'
509509
);

0 commit comments

Comments
 (0)