Skip to content

Releases: sonata-project/SonataTranslationBundle

2.9.0

21 Sep 08:20
Compare
Choose a tag to compare

2.9.0 - 2021-09-21

Added

  • [#543] Added LocaleProviderInterface and RequestLocaleProvider to get the locale based on the parameter from the URL or the default configured one (@franmomu)
  • [#543] Added LocaleProvider service when knplabs is enabled to be able to show the content in the proper language (@franmomu)

Deprecated

  • [#542] Deprecated implementing Sonata\TranslationBundle\Model\TranslatableInterface in an Entity implementing Knp\DoctrineBehaviors\Contract\Entity\TranslatableInterface (@franmomu)
  • [#537] Sonata\TranslationBundle\Model\Gedmo\AbstractPersonalTranslatable class (@franmomu)
  • [#537] Sonata\TranslationBundle\Model\Gedmo\AbstractPersonalTranslation class (@franmomu)
  • [#537] Sonata\TranslationBundle\Model\Gedmo\AbstractTranslatable class (@franmomu)
  • [#537] Sonata\TranslationBundle\Model\AbstractTranslatable class (@franmomu)
  • [#537] Sonata\TranslationBundle\Traits\Gedmo\PersonalTranslatableTrait trait (@franmomu)
  • [#537] Sonata\TranslationBundle\Traits\Gedmo\TranslatableTrait trait (@franmomu)
  • [#537] Sonata\TranslationBundle\Traits\TranslatableTrait trait (@franmomu)

Removed

  • [#542] Removed support of knplabs/doctrine-behaviors < 2.2 (@franmomu)

3.0.0-alpha.1

06 Jun 10:29
3.0.0-alpha.1
7f4b8e5
Compare
Choose a tag to compare
3.0.0-alpha.1 Pre-release
Pre-release

Added

  • [#383] Added support for sonata-project/admin-bundle 4 (@franmomu)
  • [#383] Added support for sonata-project/doctrine-orm-admin-bundle 4 (@franmomu)
  • [#409] Added support for Symfony 5. (@franmomu)

Changed

Removed

  • [#495] Removed class parameters from the container (@franmomu)
  • [#488] Removed support for gedmo/doctrine-extensions < 3 (@franmomu)
  • [#488] Removed support for doctrine/phpcr-odm (@franmomu)
  • [#484] Removed support for knplabs/doctrine-behaviors < 2.0 (@franmomu)
  • [#484] Removed support for doctrine/persistence < 2.0 (@franmomu)
  • [#477] Remove support for sonata-admin/block-bundle 3.x (@franmomu)

2.8.1

19 May 07:10
a7e5eb0
Compare
Choose a tag to compare

Fixed

  • [#491] Fixed registering sonata_translation.listener.translatable when no translatable_listener_service is defined (@franmomu)

2.8.0

28 Mar 19:05
4fa142e
Compare
Choose a tag to compare

Added

  • [#453] Add support for PHP 8.x (@Yozhef)
  • [#464] Added sonata_translation.gedmo.translatable_listener_service option to specify the translatable listener service name (@franmomu)

Deprecated

  • [#464] Deprecated not setting sonata_translation.gedmo.translatable_listener_service option when using gedmo (@franmomu)

2.7.0

25 Nov 08:28
2.7.0
fd87722
Compare
Choose a tag to compare

Added

  • [#416] Added support for knplabs/doctrine-behaviors 2. (@franmomu)
  • [#405] Added SonataTranslationBundle.pt.xliff to support Portuguese(Portugal) language. (@joelpro2)
  • [#375] Add support for SonataBlockBundle 4.0 (@franmomu)

Changed

Deprecated

  • [#393] Deprecated Sonata\TranslationBundle\Test\DoctrineOrmTestCase. (@franmomu)
  • [#393] Deprecated constructing AbstractTranslatableAdminExtension without the default translation locale. (@franmomu)
  • [#393] Deprecated protected AbstractTranslatableAdminExtension::getContainer() method. (@franmomu)
  • [#393] Deprecated protected AbstractTranslatableAdminExtension::getTranslationLocales() method. (@franmomu)
  • [#393] Deprecated protected AbstractTranslatableAdminExtension::getDefaultTranslationLocale() method. (@franmomu)
  • [#393] Deprecated constructing Sonata\TranslationBundle\Admin\Extension\Gedmo\TranslatableAdminExtension without an instance of TranslatableListener and ManagerRegistry. (@franmomu)

2.6.0

04 Sep 22:46
2.6.0
Compare
Choose a tag to compare

Added

Fixed

  • [#369] Fixed starting the session in UserLocaleSubscriber::onInteractiveLogin() when there is no previous session (@phansys)
  • [#348] Deprecation notice about ModelManager::getNormalizedIdentifier() on list pages (@jorrit)
  • [#345] Deprecation notice caused by use of spaceless tag in block_locale_switcher.html.twig (@jorrit)
  • [#337] Use of undefined filter language_name (@franmomu)

Removed

2.5.0

31 Mar 17:34
2.5.0
07c278f
Compare
Choose a tag to compare

Added

  • Added a global option default_filter_mode to change every filter mode
  • Added filter_mode option for TranslationFieldFilter to change the
    filtering mode based on the provider (either knplabs or gedmo)

Fixed

  • Check if method getLocale exists before to use it in UserLocaleListener
  • Fixed issue caused by always using the default entity manager

Removed

  • Removed SonataCoreBundle
  • Support for Symfony < 3.4
  • Support for Symfony >= 4, < 4.2

2.4.2

05 Jul 21:01
2.4.2
b9e66db
Compare
Choose a tag to compare

Fixed

  • Admin without entity shouldn't be restricted

2.4.1

28 Feb 21:55
2.4.1
af09eb0
Compare
Choose a tag to compare

Added

  • Feature flag to either keep using country flags or show locale names in language switcher

Fixed

  • Fix deprecation for symfony/config 4.2+

Changed

  • Replace country flags with locale names in language switcher

Removed

  • support for php 5 and php 7.0

2.4.0

03 Dec 19:27
2.4.0
6086b4d
Compare
Choose a tag to compare

Added

  • Added global locale switcher

Fixed

  • Global search on translatable fields