Преглед на файлове

Doc installation update (#4116)

Add information about translator service that is needed.
Louis преди 8 години
родител
ревизия
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
 
+.. 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
 ---------------------------------------
 

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