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