Merge remote branch 'noelg/i18n-translations-dir'

* noelg/i18n-translations-dir:
  [translations] Moved the application translations directory under Resources to be consistent with bundles
This commit is contained in:
Fabien Potencier 2011-04-30 07:24:13 +02:00
commit 55aff78a59
2 changed files with 12 additions and 1 deletions

View File

@ -44,6 +44,17 @@ beta1 to beta2
Before: array('default', 'foo')
After: array('default' => 'doctrine.orm.default_entity_manager', 'foo' => 'doctrine.orm.foo_entity_manager'))
* Application translation are now in the `Resources` folder:
Before:
app/translations/catalogue.fr.xml
After:
app/Resources/translations/catalogue.fr.xml
PR12 to beta1
-------------

View File

@ -440,7 +440,7 @@ class FrameworkExtension extends Extension
$dirs[] = $dir;
}
}
if (is_dir($dir = $container->getParameter('kernel.root_dir').'/translations')) {
if (is_dir($dir = $container->getParameter('kernel.root_dir').'/Resources/translations')) {
$dirs[] = $dir;
}