stev / doctrine-translations-bundle
Symfony 2 Bundle providing form data mappers to handle translations using doctrine entities
Installs: 14
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.6
- doctrine/orm: ^2.4
- stof/doctrine-extensions-bundle: ^1.3
- symfony/framework-bundle: ^2.6|^3.0
This package is auto-updated.
Last update: 2024-12-11 16:54:00 UTC
README
Symfony 2 Bundle providing form data mappers to handle translations using doctrine entities
Install
Run: composer require stev/doctrine-translations-bundle
Inspired from
https://github.com/Simettric/DoctrineTranslatableFormBundle
WARNING
This works only if the user current locale is the same as the default locale in your settings (stof_doctrine_extensions -> default_locale), otherwise, gedmo listener will override your translations. So if your app has a feature allowing the user to switch his language, this bundle won't work for you. This works for admin panels where admins work only in one language and whish to edit the content in multiple languages at the same time. And then the content is displayed on another application where users can switch languages.