Skip to content

Commit e98f953

Browse files
authored
[Translation] Update translation.rst
The trans() in the translator service is a method, not a function.
1 parent 4865b3b commit e98f953

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

translation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ The ``translation:update`` command looks for missing translations in:
352352
defined in the :ref:`twig.default_path <config-twig-default-path>` and
353353
:ref:`twig.paths <config-twig-paths>` config options);
354354
* Any PHP file/class that injects or :doc:`autowires </service_container/autowiring>`
355-
the ``translator`` service and makes calls to the ``trans()`` function.
355+
the ``translator`` service and makes calls to the ``trans()`` method.
356356

357357
.. versionadded:: 4.3
358358

0 commit comments

Comments
 (0)