The change log describes what is "Added", "Removed", "Changed" or "Fixed" between each release.
- Fixed render error in profiler/translation.html.twig (fixes #496) by @althaus in #497
- bug: js error use own object extends HTMLElement by @gimler in #493
- Remove symfony console $defaultName deprecation by @axi in #491
- Dropped PHP 7.2, 7.3, 7.4, and 8.0 support by @axi in #491
- Bundle does not work properly with new Intl ICU translations by @snpy in #452
- Symfony Profiler Fix Symfony 6.x compatibility by @krzyc in #488
- Fix code styles by @bocharsky-bw in #479
- Apply changes suggested by PHP CS Fixer by @bocharsky-bw in #486
- Upgrade the SymfonyBundleTest by @bocharsky-bw in #481
- fix: check if session is available by @robbedg in #478
- fix: used finder->exclude instead of notPath for excludedDirs by @seizan8 in #474
- Add testing on the newest PHP 8.1 to the CI config by @bocharsky-bw in #465
- Allow Symfony 6 by @bocharsky-bw in #464
- refac: remove AbstractController from EditInPlaceController by @gimler in #459
- Stop extending AbstractController to fix some deprecations by @bocharsky-bw in #460
- Use autowiring for SymfonyProfilerController by @bocharsky-bw in #461
- Use a different image for PHP CS Fixer to get latest and upgrade config #471
- Fix Cannot autowire service "php_translation.data_collector" error in… by @axi in #463
- Fix yaml indentation to 4 spaces by @bocharsky-bw in #462
- Fix for deprecated session service in Symfony 6 by @robbedg in #468
- Fix return type and implement getCatalogues() #470
- Fix extractor parameters #438
- Make Profiler service an optional argument for SymfonyProfilerController #440
- Update ExtractCommand.php #435
- Fix tests on Symfony 5.3 #443
- Suppress getMasterRequest() deprecation message #444
- Suppress deprecations on deprecating legacy services #445
- Fix PHPUnit deprecations #447
- Fix broken tests #458
- Register visitor tag also for TranslateAnnotationVisitor and Knp visitors #451
- Drop SensioLabs (Symfony) insight badge #441
- Fix psalm issues #431
- Fix: do not require unreleased packages #433
- Support for PHP 8
- Add missing command definition #412
- Fix typo in Tests/Functional/app/config/framework.yaml #413
- Support for Symfony 3
- Support for PHP 7.1
- Allow null values in CheckMissingCommand
- Service definition for form field title extractor
- Command translation:check-missing
- Command to delete empty translations
- Ability to send arbitrary options to a TransferableStorage with the download and sync command.
- Support Symfony Profiler dark mode
- Add missing AJAX requests headers ('X-Requested-With')
- Resolve environment placeholders.
- Correct incorrect service name
php_translator.fallback_translator.inner
. - Extract command: Configure bundle dir before fetching catalogues.
- Deal with null values when retrieving catalogues.
- GUI updates on the Profiler page.
- Fixed "Unable to edit a missing translation from profiler" by updating SymfonyStorage
- Modernized SymfonyProfilerController by stop using
$this->get()
and other bad practises. - Modernized DownloadCommand
StorageService::download()
will return an array ofMessageCatalogue
after local copy is downloaded.- DownloadCommand will automatically clear cache.
- Support for Symfony 5.
- PHP 7 type hints.
- Allow user to configure a custom dumper.
- Use class names as service ids. Old service ids will still be available as aliases.
- Renamed all
*.yml
files to*.yaml
.
- Support for PHP < 7.2
- Support for Symfony < 3.4
- Support for php-translation/extractor 1.0 (including Twig 1 support)
- Fixed issue with translations falsely marked as obsolete
- Declared
Translation\Extractor\Visitor\Php\Symfony\FormTypeHelp
as a visitor - Support for Symfony >= 4.2
- Using Twig namespaces
- Twig block names to easier override web profiler js/css
- Support for PHP < 7.1
- Support for Symfony < 3.4
- PHP 7.3 support
- Bing translator service
- Deprecated notice when using
symfony/config
>= 4.2 - Compatibility issues with Symfony 4.3
- Bad HTML generation when there is HTML in the translation
- Tweaked several Command descriptions
- Command translationdelete-obsolete did not run in non-interactive shells
- EditInPlaceResponseListener did not work properly with BinaryFileResponse
- Filter on empty messages in WebUI
- Use bootstrap icons
- Buhfix with logic operator in ImportService. See #258
- Bootstrap 4.1 CSS for web UI
- Support for stable
php-translation
dependencies
- Only add translation form
@desc
annotation to the default locale - Ensure storage exists before using it in commands
FileDumper::setBackup()
deprecation notice- Twig
strict_variabels
deprecation notice - Avoid global bootstrap overrides - apply styles via new .configs CSS class
- The
FallbackTranslator
will not try to translate to an empty locale. This could be considered as a BC break since now it will return the translation key instead of whatever the translator service returned (usually the translated string in original language).
- Support for
php-translation/common:0.3
andphp-translation/symfony-storage:0.5
- Support for dumping to .po files.
- Support for
SourceLocation
's context keytranslation
which adds a default translation to theMessage
. - Better respect blacklist and whitelist in
CatalogueFetcher
.
- Bug with config option
local_file_storage_options
not being used. - Bug with edit-in-place and custom activator.
- The "desc" filter will be used as default translation when extracting.
- User feedback when you use DeleteObsoleteCommand.
- Injecet depedencies in commands.
- Added argument for sync direction.
- The service
php_translation.storage.default
is now public. - The XliffDumper does not backup existing files before creating dump. This is the default behavior in Symfony 4.
Metadata::$notes
will not change when runningMetadata::getAllInCategory()
-- Symfony 4 issues with the DownloadCommand.
- Support for Symfony 4
- Support for
desc
Twig filter - Support for extract/update only for one bundle
- Dump configuration reference
- Improved statistics on WebUI
- Commands are registered as services
EditInPlaceResponseListener::__construct
usesUrlGeneratorInterface
instead of the concreate classRouter
- The
php_translation.edit_in_place.activator
service is public
- Support for
desc
filter in Twig.
- Twig extension
TranslationExtension
was renamed toEditInPlaceExtension
- Symfony 4 support
- New
--cache
option on thetranslation:download
allowing to clear the cache automatically if the downloaded translations have changed. - Support for Yandex translator
- Wrong paths in web profiler when using Twig2.x.
- Some JavaScript errors.
Major improvements on this version. Be aware that the default format to store translation has changed to XLIFF 2.0. If you run the extract command you will automatically get updated files.
- More extractors from
php-translation/extractor
- Show status after extract command
- Added status command
- Support for PHPUnit6
- Support for
php-translation/symfony-storage
0.3.0 - Using dumper and loader from
php-translation/extractor
CatalogueCounter
to show statistics about a catalogue- Lots of more tests. Test coverage increased from 27% to 69%
Importer
returns anImportResult
value object- Improved internal management of metadata. Introduced a new
Metadata
model - Renamed
MetadataAwareMerged
toReplaceOperation
, read the class doc for the updated syntax
- Issue with WebProfiler's
ClonerData
on Symfony 3.3
- Removed
WebUIMessage
andEditInPlaceMessage
. UseMessage
fromphp-translation/common
instead - Removed metadata related functions from
CatalogueManager
- Improve UI/UX in Profiler (loader during AJAX requests, select/deselect all messages)
- Do not throw exception when SF Translation collector is not found.
- Fix incorrect EditInPlace activation on Twig
is_safe
comparison
- When using EditInPlace, we only mark twig filters (
trans
&transchoice
) as "safe" when EditInPlace in active.
- Add meta informations from the profiler to
Translation\Common\Model\Message
- Make Dependency Injection work with Twig1
- HTML fixes on profiler page
- Support for Symfony 3.3.x
- Option to not show "untranslatable" in WebUI
- Make sure we fail with an exception if SfTranslation is not enabled
- Improved testing
- Added translation cache dir on warmup
- More tests
- Using Extractor 1.1.1.
- Support for Twig2
- Allow to pass options ot the dumper
- Use stable version of extractor
- Clear cache when updating translations with EditInPlace
- Updated namespace for EditInPlace feature
- Bug when DataCollector might be missing
- Better regex for EditInPlace attribute replacement
CatalogueWriter
- Commands for downloading and syncing translations
- Added
Configuration
model to work with theConfigurationManager
. - Implementation for all methods in the
StorageService
Translation\Bundle\Service\CatalogueFetcher
moved toTranslation\Bundle\Catalogue\CatalogueFetcher
- Made most (if not all) classes final.
CatalogueFetcher
requires aConfiguration
object.
- Dead code in the
SymfonyProfilerController
FileStorage
was moved tophp-translation/symfony-storage
- The bundle works without any configuration.
- You may have an config named "default".
First release.