File tree Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Expand file tree Collapse file tree 1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -563,16 +563,21 @@ if you're generating translations with specialized programs or teams.
563
563
;
564
564
};
565
565
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.
567
573
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
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
571
576
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.
576
581
577
582
.. _translation-providers :
578
583
You can’t perform that action at this time.
0 commit comments