File tree Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Expand file tree Collapse file tree 1 file changed +6
-15
lines changed Original file line number Diff line number Diff line change @@ -10,25 +10,16 @@ When maintaining an application or bundle, you may add or remove translation
1010messages and forget to update the message catalogues. The ``debug:translation ``
1111command helps you to find these missing or unused translation messages templates:
1212
13- .. configuration-block ::
14-
15- .. code-block :: twig
16-
17- {# messages can be found when using the trans/transchoice filters and tags #}
18- {% trans %}Symfony is great{% endtrans %}
13+ .. code-block :: twig
1914
20- {{ 'Symfony is great'|trans }}
15+ {# messages can be found when using the trans/transchoice filters and tags #}
16+ {% trans %}Symfony is great{% endtrans %}
2117
22- {{ 'Symfony is great'|transchoice(1) }}
23-
24- {% transchoice 1 %}Symfony is great{% endtranschoice %}
25-
26- .. code-block :: php
18+ {{ 'Symfony is great'|trans }}
2719
28- // messages can be found when using the trans() and transChoice() methods
29- $view['translator']->trans("Symfony is great");
20+ {{ 'Symfony is great'|transchoice(1) }}
3021
31- $view['translator']->transChoice(' Symfony is great', 1);
22+ {% transchoice 1 %} Symfony is great{% endtranschoice %}
3223
3324 .. caution ::
3425
You can’t perform that action at this time.
0 commit comments