Skip to content

Commit 8d05a52

Browse files
committed
[symfony#2709] Minor tweaks to 2 new translation DIC tags
1 parent ed799f8 commit 8d05a52

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

reference/dic_tags.rst

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -926,17 +926,18 @@ translation.extractor
926926
**Purpose**: To register a custom service that extracts messages from a file
927927
928928
.. versionadded:: 2.1
929-
The ability to add message extractors is new in 2.1
929+
The ability to add message extractors is new in Symfony 2.1.
930930
931931
When executing the ``translation:update`` command, it uses extractors to
932932
extract translation messages from a file. By default, the Symfony2 framework
933933
has a :class:`Symfony\\Bridge\\TwigBridge\\Translation\\TwigExtractor` and a
934-
:class:`Symfony\\Bundle\\FrameworkBundle\\Translation\\PhpExtractor`.
934+
:class:`Symfony\\Bundle\\FrameworkBundle\\Translation\\PhpExtractor`, which
935+
help to find and extract translation keys from Twig templates and PHP files.
935936
936-
You can create your own extractor by creating a class which implements
937+
You can create your own extractor by creating a class that implements
937938
:class:`Symfony\\Component\\Translation\\Extractor\\ExtractorInterface` and
938939
tagging the service with ``translation.extractor``. The tag has one required
939-
option: ``alias``, this defines the name of the extractor.
940+
option: ``alias``, which defines the name of the extractor::
940941
941942
// src/Acme/DemoBundle/Translation/FooExtractor.php
942943
namespace Acme\DemoBundle\Translation;
@@ -996,13 +997,13 @@ translation.dumper
996997
**Purpose**: To register a custom service that dumps messages to a file
997998
998999
.. versionadded:: 2.1
999-
The ability to add message dumpers is new to 2.1
1000+
The ability to add message dumpers is new in Symfony 2.1.
10001001
10011002
After an `Extractor <translation.extractor>`_ has extracted all messages from
10021003
the templates, the dumpers are executed to dump the messages to a translation
10031004
file in a specific format.
10041005
1005-
Symfony2 comes already with many dumpers:
1006+
Symfony2 already comes with many dumpers:
10061007
10071008
* :class:`Symfony\\Component\\Translation\\Dumper\\CsvFileDumper`
10081009
* :class:`Symfony\\Component\\Translation\\Dumper\\IcuResFileDumper`
@@ -1014,7 +1015,7 @@ Symfony2 comes already with many dumpers:
10141015
* :class:`Symfony\\Component\\Translation\\Dumper\\YamlFileDumper`
10151016
10161017
You can create your own dumper by extending
1017-
:class:`Symfony\\Component\\Translation\\DumperFileDumper` or implementing
1018+
:class:`Symfony\\Component\\Translation\\Dumper\\FileDumper` or implementing
10181019
:class:`Symfony\\Component\\Translation\\Dumper\\DumperInterface` and tagging
10191020
the service with ``translation.dumper``. The tag has one option: ``alias``
10201021
This is the name that's used to determine which dumper should be used.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy