Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit afa51d3

Browse filesBrowse 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
Copy full SHA for afa51d3

File tree

Expand file treeCollapse file tree

1 file changed

+0
-10
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-10
lines changed

‎translation.rst

Copy file name to clipboardExpand all lines: translation.rst
-10Lines changed: 0 additions & 10 deletions
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.