From ebcde09b2df8cd77ea81b5bcb33a22be351a3d64 Mon Sep 17 00:00:00 2001 From: Loulier Guillaume Date: Thu, 15 Feb 2018 20:55:45 +0100 Subject: [PATCH 1/3] fix(Extractor): ExtractorInterface called --- reference/dic_tags.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index 6464091c546..408fa9ff386 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -1226,7 +1226,7 @@ translation.dumper **Purpose**: To register a custom service that dumps messages to a file -After an `Extractor `_ has extracted all messages +After an instance of ::class:`Symfony\\Component\\Translation\\Extractor\\ExtractorInterface` has extracted all messages from the templates, the dumpers are executed to dump the messages to a translation file in a specific format. From 03115e558e9c76bf1385202a49662f790bc05d12 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 16 Feb 2018 08:55:16 +0100 Subject: [PATCH 2/3] Fixed the cross reference --- reference/dic_tags.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index 408fa9ff386..bc41dcdd773 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -1226,8 +1226,8 @@ translation.dumper **Purpose**: To register a custom service that dumps messages to a file -After an instance of ::class:`Symfony\\Component\\Translation\\Extractor\\ExtractorInterface` has extracted all messages -from the templates, the dumpers are executed to dump the messages to a +After a :ref:`translation extractor ` has extracted all +messages from the templates, the dumpers are executed to dump the messages to a translation file in a specific format. Symfony already comes with many dumpers: From 2bd34ade31ada5b0db08b8ced187bffb4ef4a794 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Fri, 16 Feb 2018 09:00:24 +0100 Subject: [PATCH 3/3] Created a new reference --- reference/dic_tags.rst | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reference/dic_tags.rst b/reference/dic_tags.rst index bc41dcdd773..4e15795871a 100644 --- a/reference/dic_tags.rst +++ b/reference/dic_tags.rst @@ -1142,6 +1142,8 @@ file, but it might either be blank or contain a little bit of information about loading those resources from the database. The file is key to trigger the ``load()`` method on your custom loader. +.. _reference-dic-tags-translation-extractor: + translation.extractor --------------------- @@ -1226,9 +1228,9 @@ translation.dumper **Purpose**: To register a custom service that dumps messages to a file -After a :ref:`translation extractor ` has extracted all -messages from the templates, the dumpers are executed to dump the messages to a -translation file in a specific format. +After a :ref:`translation extractor ` +has extracted all messages from the templates, the dumpers are executed to dump +the messages to a translation file in a specific format. Symfony already comes with many dumpers: