Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8d05a52

Browse files
committed
[#2709] Minor tweaks to 2 new translation DIC tags
1 parented799f8 commit8d05a52

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 inSymfony2.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 classwhich implements
937+
You can create your own extractor by creating a classthat 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 newto2.1
1000+
The ability to add message dumpers is newin Symfony2.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-
Symfony2comesalready 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)

[8]ページ先頭

©2009-2025 Movatter.jp