Permalink
Browse files

feature #3428 Translation - Added info about JsonFileLoader added in …

…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 6b3c424034fec441a32d8305600c1c26936b8f1e
Showing with 5 additions and 0 deletions.
  1. +5 −0 components/translation/introduction.rst
@@ -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:
@@ -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>`).

0 comments on commit 6b3c424

Please sign in to comment.