Skip to content

Commit

Permalink
feature #3428 Translation - Added info about JsonFileLoader added in …
Browse files Browse the repository at this point in the history
…2.4 (singles)

This PR was merged into the 2.4 branch.

Discussion
----------

Translation - Added info about JsonFileLoader added in 2.4

| Q             | A
| ------------- | ---
| Doc fix?      | no
| New docs?     | yes (symfony/symfony#8534)
| Applies to    | 2.4
| Fixed tickets | n/a

Commits
-------

adf678b Added info about JsonFileLoader added in 2.4
  • Loading branch information
weaverryan committed Jan 9, 2014
2 parents 541cd73 + adf678b commit 6b3c424
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/translation/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@ The Translation component uses Loader classes to load catalogs. You can load
multiple resources for the same locale, which will then be combined into one
catalog.

.. versionadded:: 2.4
The ``JsonFileLoader`` was introduced in Symfony 2.4.

The component comes with some default Loaders and you can create your own
Loader too. The default loaders are:

Expand All @@ -85,6 +88,8 @@ Loader too. The default loaders are:
catalogs form QT XML files.
* :class:`Symfony\\Component\\Translation\\Loader\\XliffFileLoader` - to load
catalogs from Xliff files.
* :class:`Symfony\\Component\\Translation\\Loader\\JsonFileLoader` - to load
catalogs from JSON files.
* :class:`Symfony\\Component\\Translation\\Loader\\YamlFileLoader` - to load
catalogs from Yaml files (requires the :doc:`Yaml component</components/yaml/introduction>`).

Expand Down

0 comments on commit 6b3c424

Please sign in to comment.