Releases: Warxcell/EntityTranslationsBundle
Releases · Warxcell/EntityTranslationsBundle
Support Doctrine/Persistence ^2.0
Major namespace refactoring
Use Arxy namespace.
Fix bootstrap 4 missing has-error class
2.0.5 Fix bootstrap 4 has-error missing.
Fix bootstrap 4 missing nav-link class
2.0.4 Add nav-link to bootstrap 4 a
Bootstrap 4 Support
2.0.3 add bootstrap 4 support - add docs
Fix duplicated ids
Bugfix: when translations form is used more than once in same document
2.0.1 released
Twig form theme now uses form_row
instead of self rendering.
Few fixes in documentation and tests.
Released version 2.0
Changelog:
- Twig filters
translate
andtranslation
now accept arguments in different order and locale is not required:
Before:
{{ news|translate('en', 'title')|lower }}
Now
{{ news|translate('title')|lower }}
{{ news|translate('title', 'en')|lower }}
- Drop support for Symfony 2.7. Now only ~2.8 and ~3.0 are supported.
- Add tests for forms, translator and other components.
- Load translations on postPersist event for Doctrine.
- Use brand-new Form Type for translations instead of extending Symfony's Collection Type.
- Method
setTranslatable(Translatable $translatable)
forEditableTranslation
is not required now. You should useaddTranslation
andremoveTranslation
if you use form (by_reference=false). - Remove
vm5_entity_translations.translation_loader
service. Usevm5_entity_translations.translator
or FQCN instead. - Add Bootstrap Form template using tabs for each language.
- Add
translate
method inTranslator
: You can now use:Translator::translate($translatable, 'field', $locale = null)
to retrieve translated field directly. Internally translator use PropertyAccessor and it's required to pass it thru:setPropertyAccessor
method.
This version comes with few BC breaks
The signature of Translatable
is changed:
before
public function setCurrentTranslation(Translation $translation);
now:
public function setCurrentTranslation(Translation $translation = null);
Fix few deprecations from Symfony 3.4
Fix few deprecations from Symfony 3.4.
Fix wrong FormType Definition