4

What are the differences between these two extensions in StofDoctrineExtensionsBundle.

gedmo_translatable gedmo_translator

d0001
  • 2,162
  • 3
  • 20
  • 46

2 Answers2

2

Tips from Doctrine behavioral extensions, DoctrineExtensions and StofDoctrineExtensionsBundle documentations,

Translatable gives you a very handy solution for translating records into diferent languages. Put another way, It's a behavioral extension which operate like some of the most commonly used behaviors, leaving the domain objects as clean as possible. Annotations makes it easy to understand an intended behavior of properties on your Entities.

Translator - explicit way to handle translations, as an example, here's the class used to handle entity/property translation.

Ahmed Siouani
  • 13,701
  • 12
  • 61
  • 72
  • Sorry but I still don't understand. You do provide very useful documentation but I had seen it before and still don't understand. When would I need to enable the translator? I am able to get the translatable functionality without the translator. I just don't understand what "explicit way to handle translations" means or how it comes into play? – d0001 May 03 '13 at 13:26
2

Here is a link that explains what Translator is exactly (and how it can be better than Translatable in some use cases).

greg0ire
  • 22,714
  • 16
  • 72
  • 101