Skip to content

Commit afa51d3

Browse files
committed
minor #16507 Remove reference to PHP Templates in translation (gabrielsolomon)
This PR was merged into the 5.4 branch. Discussion ---------- Remove reference to PHP Templates in translation In the documentation there was a reference to the old PHP Templates. This might be confusing to new users that do not know this was removed in newer versions Commits ------- e3f1920 Remove reference to PHP Templates in translation
2 parents 249434e + e3f1920 commit afa51d3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

translation.rst

-10
Original file line numberDiff line numberDiff line change
@@ -437,16 +437,6 @@ The ``trans`` filter can be used to translate *variable texts* and complex expre
437437
Note that this only influences the current template, not any "included"
438438
template (in order to avoid side effects).
439439

440-
PHP Templates
441-
~~~~~~~~~~~~~
442-
443-
The translator service is accessible in PHP templates through the
444-
``translator`` helper:
445-
446-
.. code-block:: html+php
447-
448-
<?= $view['translator']->trans('Symfony is great') ?>
449-
450440
Forcing the Translator Locale
451441
-----------------------------
452442

0 commit comments

Comments
 (0)