Skip to content

Commit 6384ea5

Browse files
committed
Merge branch '5.4' into 6.3
* 5.4: [Translation] Update the contents about Doctrine entity translation
2 parents 827617f + 403b41c commit 6384ea5

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

translation.rst

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -563,16 +563,21 @@ if you're generating translations with specialized programs or teams.
563563
;
564564
};
565565
566-
.. note::
566+
Translations of Doctrine Entities
567+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
568+
569+
Unlike the contents of templates, it's not practical to translate the contents
570+
stored in Doctrine Entities using translation catalogs. Instead, use the
571+
Doctrine `Translatable Extension`_ or the `Translatable Behavior`_. For more
572+
information, read the documentation of those libraries.
567573

568-
You can also store translations in a database; it can be handled by
569-
Doctrine through the `Translatable Extension`_ or the `Translatable Behavior`_
570-
(PHP 5.4+). For more information, see the documentation for these libraries.
574+
Custom Translation Resources
575+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
571576

572-
For any other storage, you need to provide a custom class implementing the
573-
:class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface`
574-
interface. See the :ref:`dic-tags-translation-loader` tag for more
575-
information.
577+
If your translations use a format not supported by Symfony or you store them
578+
in a special way (e.g. not using files or Doctrine entities), you need to provide
579+
a custom class implementing the :class:`Symfony\\Component\\Translation\\Loader\\LoaderInterface`
580+
interface. See the :ref:`dic-tags-translation-loader` tag for more information.
576581

577582
.. _translation-providers:
578583

0 commit comments

Comments
 (0)