浏览代码

Doc installation update (#4116)

Add information about translator service that is needed.
Louis 9 年之前
父节点
当前提交
7395bb6935
共有 2 个文件被更改,包括 22 次插入0 次删除
  1. 11 0
      Resources/doc/getting_started/installation.rst
  2. 11 0
      Resources/doc/reference/installation.rst

+ 11 - 0
Resources/doc/getting_started/installation.rst

@@ -98,6 +98,17 @@ line in the `app/AppKernel.php` file of your project:
 
 
         $ bower install ./vendor/sonata-project/admin-bundle/bower.json
         $ bower install ./vendor/sonata-project/admin-bundle/bower.json
 
 
+.. note::
+
+    You must enable translator service in `config.yml`.
+
+    .. code-block:: yaml
+
+        framework:
+            translator: { fallbacks: ["%locale%"] }
+
+    For more information: http://symfony.com/doc/current/translation.html#configuration
+
 Step 3: Configure the Installed Bundles
 Step 3: Configure the Installed Bundles
 ---------------------------------------
 ---------------------------------------
 
 

+ 11 - 0
Resources/doc/reference/installation.rst

@@ -97,6 +97,17 @@ forget to enable SonataAdminBundle too:
     that match the version of SonataAdminBundle you are using, you can make bower
     that match the version of SonataAdminBundle you are using, you can make bower
     use the local bower dependency file, like this : ``bower install ./vendor/sonata-project/admin-bundle/bower.json``
     use the local bower dependency file, like this : ``bower install ./vendor/sonata-project/admin-bundle/bower.json``
 
 
+.. note::
+
+    You must enable translator service in `config.yml`.
+
+    .. code-block:: yaml
+
+        framework:
+            translator: { fallbacks: ["%locale%"] }
+
+    For more information: http://symfony.com/doc/current/translation.html#configuration
+
 Configuring SonataAdminBundle dependencies
 Configuring SonataAdminBundle dependencies
 ------------------------------------------
 ------------------------------------------