Symfony2: 1 form to edit a translatable entity Symfony2: 1 form to edit a translatable entity symfony symfony

Symfony2: 1 form to edit a translatable entity


Hi if you use gedmo extensions Translatable is not meant to handle multiple translations per request. Try using knplabs alternative may be a better option to handle it in more general ways.


You may be interested in TranslationFormBundle, which add a form type to work with DoctrineTranslatable extension.


I've check the Translator extension, and even if it's interesting, it wasn't corresponding to our needs. (Basically, all the examples we found require that we change the site locale in order to edit an entity in another locale. I don't know Chinese, and I don't want my interface to be in Chinese, but I do have a translation that I have to copy/paste. Seems weird to explain that as it's really basic in every solid CMS you'll find out there, but I was looking a bit complex to do that kind of CMS functionnality using Symfony.)

So we've developed a solution and builded a BreadGeneratorBundle that we've decide to share:https://github.com/idealtech/BreadGeneratorBundle

At the time of posting this, it still under development, but it can be used as an alternative to the CrudGenerator in order to generate form for translatable entity.

We also manage to use the Gedmo Extension -- even if Gediminas said it's not meant to handle multiple translation ;)

Hope this will help someone ! :)