瀏覽代碼

reformat the translation documentation

Thomas Rabaix 13 年之前
父節點
當前提交
89e82ba4a0
共有 1 個文件被更改,包括 8 次插入3 次删除
  1. 8 3
      Resources/doc/reference/translation.rst

+ 8 - 3
Resources/doc/reference/translation.rst

@@ -82,8 +82,7 @@ fields: ``Label Strategies``. By default labels are generated by using by using
 
     For early adopter, you can use a specific backward compatible service to keep your current translation.
 
-This is not perfect and hard to read. So in order to solve this, the ``AdminBundle`` comes with different key label generation
-strategies:
+The ``AdminBundle`` comes with different key label generation strategies:
 
 * ``sonata.admin.label.strategy.native`` : DEFAULT - Make the string human readable readable - ``isValid`` => ``Is Valid``
 * ``sonata.admin.label.strategy.form_component`` : The default behavior from the Form Component - ``isValid`` => ``Isvalid``)
@@ -100,7 +99,13 @@ The strategy can be quickly configured when the Admin class is registered into t
 .. code-block:: xml
 
         <service id="ekino.project.admin.security_feed" class="AcmeBundle\ProjectBundle\Admin\ProjectAdmin">
-            <tag name="sonata.admin" manager_type="orm" group="Project" label="Project" label_translator_strategy="sonata.admin.label.strategy.native" />
+            <tag
+                name="sonata.admin"
+                manager_type="orm"
+                group="Project"
+                label="Project"
+                label_translator_strategy="sonata.admin.label.strategy.native"
+             />
             <argument />
             <argument>AcmeBundle\ProjectBundle\Entity\ProjectFeed</argument>
             <argument />