@@ -11,7 +11,7 @@ The Translation Component
11
11
Installation
12
12
------------
13
13
14
- You can install the component in many different ways:
14
+ You can install the component in 2 different ways:
15
15
16
16
* Use the official Git repository (https://github.com/symfony/Translation);
17
17
* :doc: `Install it via Composer</components/using_components> ` (``symfony/translation `` on `Packagist `_).
@@ -156,10 +156,11 @@ Using Message Domains
156
156
As you've seen, message files are organized into the different locales that
157
157
they translate. The message files can also be organized further into "domains".
158
158
159
- The domain is specific in the fourth argument of the ``addResource() `` method.
160
- The default domain is ``messages ``. For example, suppose that, for organization,
161
- translations were split into three different domains: ``messages ``, ``admin ``
162
- and ``navigation ``. The French translation would be loaded like this::
159
+ The domain is specified in the fourth argument of the ``addResource() ``
160
+ method. The default domain is ``messages ``. For example, suppose that, for
161
+ organization, translations were split into three different domains:
162
+ ``messages ``, ``admin `` and ``navigation ``. The French translation would be
163
+ loaded like this::
163
164
164
165
// ...
165
166
$translator->addLoader('xliff', new XliffLoader());
@@ -175,12 +176,11 @@ you must specify the domain as the third argument of ``trans()``::
175
176
176
177
Symfony2 will now look for the message in the ``admin `` domain of the
177
178
specified locale.
178
- can use ``-Inf `` and ``+Inf `` for the infinite.
179
179
180
180
Usage
181
181
-----
182
182
183
- Read how to use the Translation components in ":doc: `/components/translation/usage `".
183
+ Read how to use the Translation component in ":doc: `/components/translation/usage `".
184
184
185
185
.. _Packagist : https://packagist.org/packages/symfony/translation
186
186
.. _`ISO3166 Alpha-2` : http://en.wikipedia.org/wiki/ISO_3166-1#Current_codes
0 commit comments