소스 검색

[translations] Moved the application translations directory under Resources to be consistent with bundles

noel guilbert 14 년 전
부모
커밋
f644bbc027
2개의 변경된 파일12개의 추가작업 그리고 1개의 파일을 삭제
  1. 11 0
      UPDATE.md
  2. 1 1
      src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

+ 11 - 0
UPDATE.md

@@ -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
 -------------
 

+ 1 - 1
src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

@@ -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;
             }