Sfoglia il codice sorgente

Doc installation update (#4116)

Add information about translator service that is needed.
Louis 8 anni fa
parent
commit
7395bb6935

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