Skip to content

Commit d8d3c24

Browse files
committed
[Translation] Update the contents about Doctrine entity translation
1 parent d513550 commit d8d3c24

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

translation.rst

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -562,16 +562,22 @@ if you're generating translations with specialized programs or teams.
562562
;
563563
};
564564
565-
.. note::
566-
567-
You can also store translations in a database; it can be handled by
568-
Doctrine through the `Translatable Extension`_ or the `Translatable Behavior`_
569-
(PHP 5.4+). For more information, see the documentation for these libraries.
570-
571-
For any other storage, you need to provide a custom class implementing the
572-
:class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface`
573-
interface. See the :ref:`dic-tags-translation-loader` tag for more
574-
information.
565+
Translations of Doctrine Entities
566+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
567+
568+
Unlike the contents of templates, it's not practical to translate the contents
569+
stored in Doctrine Entities using translation catalogs. Instead, use the
570+
Doctrine `Translatable Extension`_ or the `Translatable Behavior`_. For more
571+
information, see the documentation for these libraries.
572+
573+
Custom Translation Resources
574+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
575+
576+
If your translations use a format not supported by Symfony or you store them
577+
in not using Doctrine entities, you need to provide a custom class implementing
578+
the :class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface`
579+
interface. See the :ref:`dic-tags-translation-loader` tag for more
580+
information.
575581

576582
.. _translation-providers:
577583

0 commit comments

Comments
 (0)