From e98f953d7bda83018ed723ad37f48b1656862f21 Mon Sep 17 00:00:00 2001 From: Sebastian Paczkowski <74934099+sebpacz@users.noreply.github.com> Date: Wed, 3 Mar 2021 21:12:36 +0100 Subject: [PATCH] [Translation] Update translation.rst The trans() in the translator service is a method, not a function. --- translation.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translation.rst b/translation.rst index 20025b8b5cd..4a0137b94d8 100644 --- a/translation.rst +++ b/translation.rst @@ -352,7 +352,7 @@ The ``translation:update`` command looks for missing translations in: defined in the :ref:`twig.default_path ` and :ref:`twig.paths ` config options); * Any PHP file/class that injects or :doc:`autowires ` - the ``translator`` service and makes calls to the ``trans()`` function. + the ``translator`` service and makes calls to the ``trans()`` method. .. versionadded:: 4.3