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

Skip to content

Commit b2b1eb5

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Remove reference to PHP Templates in translation
2 parents 33e17b0 + afa51d3 commit b2b1eb5

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

translation.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -433,16 +433,6 @@ The ``trans`` filter can be used to translate *variable texts* and complex expre
433433
Note that this only influences the current template, not any "included"
434434
template (in order to avoid side effects).
435435

436-
PHP Templates
437-
~~~~~~~~~~~~~
438-
439-
The translator service is accessible in PHP templates through the
440-
``translator`` helper:
441-
442-
.. code-block:: html+php
443-
444-
<?= $view['translator']->trans('Symfony is great') ?>
445-
446436
Forcing the Translator Locale
447437
-----------------------------
448438

0 commit comments

Comments
 (0)