All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
3.3.0 - 2023-06-04
- [#693] Support for SonataBlockBundle 5.0 (@jordisala1991)
3.2.0 - 2023-04-24
- [#682] Support for Symfony 4 (@jordisala1991)
- [#682] Support for Twig 2 (@jordisala1991)
- [#682] Support for
doctrine/persistence
^2 (@jordisala1991)
3.1.1 - 2023-03-21
- [#674] Always load the TranslatableChecker (@VincentLanglet)
3.1.0 - 2022-06-10
- [#636] Sonata\TranslationBundle\Checker\TranslationChecker rely on 'is_a' instead of insteance of to fully support string parameter. (@mpoiriert)
- [#637] Locale block response is not rendered as private anymore to be compatible with SonataBlockBundle 5 (@franmomu)
3.0.1 - 2022-03-22
- [#630] Support of new admin declaration with
model_class
as attribute (@fransweerts)
3.0.0 - 2022-01-27
No changes.
3.0.0-rc.1 - 2021-12-31
- [#572] Added support for Symfony 6. (@jordisala1991)
- [#550]
Sonata\TranslationBundle\Admin\Extension\Knplabs\TranslatableAdminExtension
has been marked as@internal
(@franmomu) - [#550]
Sonata\TranslationBundle\Admin\Extension\Gedmo\TranslatableAdminExtension
has been marked as@internal
(@franmomu)
- [#556] Fixed accessing current locale from
block_locale_switcher.html.twig
template (@ggabrovski)
- [#599]
UserLocaleSubscriber
class in favor of implementing its own solution (@franmomu) - [#558] Dropped support for PHP 7.3 (@franmomu)
- [#559] Removed
TranslatableInterface::getLocale()
method (@franmomu)
2.10.1 - 2021-12-31
2.10.0 - 2021-11-17
- [#578] Support for 5.x versions in
symfony/browser-kit
,symfony/config
,symfony/css-selector
,symfony/dependency-injection
,symfony/http-foundation
,symfony/intl
,symfony/options-resolver
,symfony/phpunit-bridge
andsymfony/templating
(@phansys)
- [#571]
Sonata\TranslationBundle\Model\TranslatableInterface
in favor of specific package interfaces (gedmo or knplabs) (@franmomu) - [#571]
Sonata\TranslationBundle\Model\Gedmo\TranslatableInterface
in favor ofGedmo\Translatable\Translatable
(@franmomu)
2.9.1 - 2021-10-19
2.9.0 - 2021-09-21
- [#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)
- [#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)
2.8.1 - 2021-05-18
- [#491] Fixed registering
sonata_translation.listener.translatable
when notranslatable_listener_service
is defined (@franmomu)
2.8.0 - 2021-03-28
- [#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)
- [#464] Deprecated not setting
sonata_translation.gedmo.translatable_listener_service
option when using gedmo (@franmomu)
2.7.0 - 2020-11-25
- [#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)
- [#408]
Replaced deprecated
GetResponseEvent
withRequestEvent
. (@franmomu) - [#391] Mark classes as final (@franmomu)
- [#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 - 2020-09-04
- [#368] Twig 3 compatibility (@jorrit)
- [#367] Dutch translation (@jorrit)
- [#337] Added
sonata_language_name
Twig filter (@franmomu)
- [#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)
- [#349] Support for PHP < 7.2 (@wbloszyk)
- [#349] Support for Symfony < 4.4 (@wbloszyk)
- [#336] Support of Symfony < 4.3 (@franmomu)
2.5.0 - 2020-03-31
- 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
)
- Check if method
getLocale
exists before to use it inUserLocaleListener
- Fixed issue caused by always using the default entity manager
- Removed
SonataCoreBundle
- Support for Symfony < 3.4
- Support for Symfony >= 4, < 4.2
2.4.2 - 2019-07-05
- Admin without entity shouldn't be restricted
2.4.1 - 2019-02-28
- Feature flag to either keep using country flags or show locale names in language switcher
- Fix deprecation for symfony/config 4.2+
- Replace country flags with locale names in language switcher
- support for php 5 and php 7.0
2.4.0 - 2018-12-03
- Added global locale switcher
- Global search on translatable fields
2.3.1 - 2018-06-21
- Added check if translatable checker service exists
- language switcher does not have the same style in modal
2.3.0 - 2018-02-02
- Added Russian translations
- Compatibility with Symfony4
- Changed internal folder structure to
src
,tests
anddocs
- Switch all templates references to Twig namespaced syntax
- Switch from templating service to sonata.templating
- Removed usage of old form type aliases
- Fix RuntimeException in sonata:admin:explain command
- support for old versions of php and Symfony
2.2.0 - 2017-09-26
- Support of Twig 2.0
- Added phpcr lists translations
2.1.1 - 2017-04-04
- use
Sonata\BlockBundle\Block\Service\AbstractBlockService
instead of deprecatedSonata\BlockBundle\Block\BaseBlockService
inLocaleSwitcherBlockService
- renamed
service.xml
toservice_orm.xml
- only load
service_orm.xml
ifSonataDoctrineORMAdminBundle
is registered
- Fixed typo in
SonataTranslationExtension
2.1.0 - 2017-01-17
- Added missing flag image
ja.png
- Use
AbstractAdminExtension
instead of deprecatedAdminExtension
- Deprecate
Translatable
in favor ofTranslatableTrait
- Deprecate
PersonalTranslatable
in favor ofPersonalTranslatableTrait
- Fix missing locale annotation for Gedmo trait
- Display flags for locales with country code
2.0.2 - 2016-06-15
- Remove wrong
doctrine-orm-admin-bundle
anddoctrine-phpcr-admin-bundle
composer requirements
2.0.1 - 2016-06-07
- Fix wrong conflict rule for
doctrine-orm-admin-bundle