Skip to content

Releases: Warxcell/EntityTranslationsBundle

Support Doctrine/Persistence ^2.0

22 Jan 10:16
Compare
Choose a tag to compare
3.1.0

Upgrade to Doctrine/Persistence ^2.0

Major namespace refactoring

19 Aug 12:27
Compare
Choose a tag to compare

Use Arxy namespace.

Fix bootstrap 4 missing has-error class

27 Aug 19:25
Compare
Choose a tag to compare
2.0.5

Fix bootstrap 4 has-error missing.

Fix bootstrap 4 missing nav-link class

27 Aug 11:19
Compare
Choose a tag to compare
2.0.4

Add nav-link to bootstrap 4 a

Bootstrap 4 Support

27 Aug 10:21
Compare
Choose a tag to compare
2.0.3

add bootstrap 4 support - add docs

Fix duplicated ids

07 Aug 18:49
Compare
Choose a tag to compare

Bugfix: when translations form is used more than once in same document

2.0.1 released

11 Jan 11:42
Compare
Choose a tag to compare

Twig form theme now uses form_row instead of self rendering.

Few fixes in documentation and tests.

Released version 2.0

15 Dec 13:34
Compare
Choose a tag to compare

Changelog:

  • Twig filters translate and translation 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) for EditableTranslation is not required now. You should use addTranslation and removeTranslation if you use form (by_reference=false).
  • Remove vm5_entity_translations.translation_loader service. Use vm5_entity_translations.translator or FQCN instead.
  • Add Bootstrap Form template using tabs for each language.
  • Add translate method in Translator: 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

07 Dec 08:14
Compare
Choose a tag to compare

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

04 Dec 15:31
Compare
Choose a tag to compare

Fix few deprecations from Symfony 3.4.
Fix wrong FormType Definition