Releases: sonata-project/SonataTranslationBundle
Releases · sonata-project/SonataTranslationBundle
2.9.0
2.9.0 - 2021-09-21
Added
- [#543] Added
LocaleProviderInterface
andRequestLocaleProvider
to get the locale based on the parameter from the URL or the default configured one (@franmomu) - [#543] Added
LocaleProvider
service whenknplabs
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 implementingKnp\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
3.0.0-alpha.1
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
- [#488] Use
FilterData
instead ofarray
inTranslationFieldFilter
(@franmomu) - [#425] Added
final
modifier to classes. (@franmomu) - [#425] Reduced visibility of methods and properties. (@franmomu)
- [#425] Added type declarations. (@franmomu)
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
2.8.0
2.7.0
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
- [#408] Replaced deprecated
GetResponseEvent
withRequestEvent
. (@franmomu) - [#391] Mark classes as final (@franmomu)
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 ofTranslatableListener
andManagerRegistry
. (@franmomu)
2.6.0
Added
- [#368] Twig 3 compatibility (@jorrit)
- [#367] Dutch translation (@jorrit)
- [#337] Added
sonata_language_name
Twig filter (@franmomu)
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
Added
- Added a global option
default_filter_mode
to change every filter mode - Added
filter_mode
option forTranslationFieldFilter
to change the
filtering mode based on the provider (eitherknplabs
orgedmo
)
Fixed
- Check if method
getLocale
exists before to use it inUserLocaleListener
- Fixed issue caused by always using the default entity manager
Removed
- Removed
SonataCoreBundle
- Support for Symfony < 3.4
- Support for Symfony >= 4, < 4.2