Chris@0: CHANGELOG Chris@0: ========= Chris@0: Chris@14: 3.4.0 Chris@14: ----- Chris@14: Chris@14: * Added `TranslationDumperPass` Chris@14: * Added `TranslationExtractorPass` Chris@14: * Added `TranslatorPass` Chris@14: * Added `TranslationReader` and `TranslationReaderInterface` Chris@14: * Added `` section to the Xliff 2.0 dumper. Chris@14: * Improved Xliff 2.0 loader to load `` section. Chris@14: * Added `TranslationWriterInterface` Chris@14: * Deprecated `TranslationWriter::writeTranslations` in favor of `TranslationWriter::write` Chris@14: * added support for adding custom message formatter and decoupling the default one. Chris@14: * Added `PhpExtractor` Chris@14: * Added `PhpStringTokenParser` Chris@14: Chris@0: 3.2.0 Chris@0: ----- Chris@0: Chris@0: * Added support for escaping `|` in plural translations with double pipe. Chris@0: Chris@0: 3.1.0 Chris@0: ----- Chris@0: Chris@0: * Deprecated the backup feature of the file dumper classes. Chris@0: Chris@0: 3.0.0 Chris@0: ----- Chris@0: Chris@0: * removed `FileDumper::format()` method. Chris@0: * Changed the visibility of the locale property in `Translator` from protected to private. Chris@0: Chris@0: 2.8.0 Chris@0: ----- Chris@0: Chris@0: * deprecated FileDumper::format(), overwrite FileDumper::formatCatalogue() instead. Chris@0: * deprecated Translator::getMessages(), rely on TranslatorBagInterface::getCatalogue() instead. Chris@0: * added `FileDumper::formatCatalogue` which allows format the catalogue without dumping it into file. Chris@0: * added option `json_encoding` to JsonFileDumper Chris@0: * added options `as_tree`, `inline` to YamlFileDumper Chris@0: * added support for XLIFF 2.0. Chris@0: * added support for XLIFF target and tool attributes. Chris@0: * added message parameters to DataCollectorTranslator. Chris@0: * [DEPRECATION] The `DiffOperation` class has been deprecated and Chris@0: will be removed in Symfony 3.0, since its operation has nothing to do with 'diff', Chris@0: so the class name is misleading. The `TargetOperation` class should be used for Chris@0: this use-case instead. Chris@0: Chris@0: 2.7.0 Chris@0: ----- Chris@0: Chris@0: * added DataCollectorTranslator for collecting the translated messages. Chris@0: Chris@0: 2.6.0 Chris@0: ----- Chris@0: Chris@0: * added possibility to cache catalogues Chris@0: * added TranslatorBagInterface Chris@0: * added LoggingTranslator Chris@0: * added Translator::getMessages() for retrieving the message catalogue as an array Chris@0: Chris@0: 2.5.0 Chris@0: ----- Chris@0: Chris@0: * added relative file path template to the file dumpers Chris@0: * added optional backup to the file dumpers Chris@0: * changed IcuResFileDumper to extend FileDumper Chris@0: Chris@0: 2.3.0 Chris@0: ----- Chris@0: Chris@0: * added classes to make operations on catalogues (like making a diff or a merge on 2 catalogues) Chris@0: * added Translator::getFallbackLocales() Chris@0: * deprecated Translator::setFallbackLocale() in favor of the new Translator::setFallbackLocales() method Chris@0: Chris@0: 2.2.0 Chris@0: ----- Chris@0: Chris@0: * QtTranslationsLoader class renamed to QtFileLoader. QtTranslationsLoader is deprecated and will be removed in 2.3. Chris@0: * [BC BREAK] uniformized the exception thrown by the load() method when an error occurs. The load() method now Chris@0: throws Symfony\Component\Translation\Exception\NotFoundResourceException when a resource cannot be found Chris@0: and Symfony\Component\Translation\Exception\InvalidResourceException when a resource is invalid. Chris@0: * changed the exception class thrown by some load() methods from \RuntimeException to \InvalidArgumentException Chris@0: (IcuDatFileLoader, IcuResFileLoader and QtFileLoader) Chris@0: Chris@0: 2.1.0 Chris@0: ----- Chris@0: Chris@0: * added support for more than one fallback locale Chris@0: * added support for extracting translation messages from templates (Twig and PHP) Chris@0: * added dumpers for translation catalogs Chris@0: * added support for QT, gettext, and ResourceBundles