File tree 1 file changed +6
-15
lines changed
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
10
10
messages and forget to update the message catalogues. The ``debug:translation ``
11
11
command helps you to find these missing or unused translation messages templates:
12
12
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
19
14
20
- {{ 'Symfony is great'|trans }}
15
+ {# messages can be found when using the trans/transchoice filters and tags #}
16
+ {% trans %}Symfony is great{% endtrans %}
21
17
22
- {{ 'Symfony is great'|transchoice(1) }}
23
-
24
- {% transchoice 1 %}Symfony is great{% endtranschoice %}
25
-
26
- .. code-block :: php
18
+ {{ 'Symfony is great'|trans }}
27
19
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) }}
30
21
31
- $view['translator']->transChoice(' Symfony is great', 1);
22
+ {% transchoice 1 %} Symfony is great{% endtranschoice %}
32
23
33
24
.. caution ::
34
25
You can’t perform that action at this time.
0 commit comments