Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 655488c

Browse files
committed
Merge branch '4.1'
* 4.1: Removed the PHP templates from Symfony 4.0 docs
2 parents 9fefa94 + a04c883 commit 655488c

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

translation/debug.rst

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,16 @@ When maintaining an application or bundle, you may add or remove translation
1010
messages and forget to update the message catalogues. The ``debug:translation``
1111
command 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

0 commit comments

Comments
 (0)