diff --git a/translation.rst b/translation.rst index bc2ee285d58..4f3056b1dba 100644 --- a/translation.rst +++ b/translation.rst @@ -119,7 +119,7 @@ of text (called a *message*), use the for example, that you're translating a simple message from inside a controller:: // ... - use Symfony\Component\Translation\TranslatorInterface; + use Symfony\Contracts\Translation\TranslatorInterface; public function index(TranslatorInterface $translator) { @@ -197,7 +197,7 @@ Message Placeholders Sometimes, a message containing a variable needs to be translated:: - use Symfony\Component\Translation\TranslatorInterface; + use Symfony\Contracts\Translation\TranslatorInterface; public function index(TranslatorInterface $translator, $name) { @@ -230,6 +230,11 @@ method or the ``transchoice`` tag/filter in your :ref:`template