You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
6.1 KiB

3 years ago
  1. CHANGELOG
  2. =========
  3. 5.3
  4. ---
  5. * Add `translation:pull` and `translation:push` commands to manage translations with third-party providers
  6. * Add `TranslatorBagInterface::getCatalogues` method
  7. * Add support to load XLIFF string in `XliffFileLoader`
  8. 5.2.0
  9. -----
  10. * added support for calling `trans` with ICU formatted messages
  11. * added `PseudoLocalizationTranslator`
  12. * added `TranslatableMessage` objects that represent a message that can be translated
  13. * added the `t()` function to easily create `TranslatableMessage` objects
  14. * Added support for extracting messages from `TranslatableMessage` objects
  15. 5.1.0
  16. -----
  17. * added support for `name` attribute on `unit` element from xliff2 to be used as a translation key instead of always the `source` element
  18. 5.0.0
  19. -----
  20. * removed support for using `null` as the locale in `Translator`
  21. * removed `TranslatorInterface`
  22. * removed `MessageSelector`
  23. * removed `ChoiceMessageFormatterInterface`
  24. * removed `PluralizationRule`
  25. * removed `Interval`
  26. * removed `transChoice()` methods, use the trans() method instead with a %count% parameter
  27. * removed `FileDumper::setBackup()` and `TranslationWriter::disableBackup()`
  28. * removed `MessageFormatter::choiceFormat()`
  29. * added argument `$filename` to `PhpExtractor::parseTokens()`
  30. * removed support for implicit STDIN usage in the `lint:xliff` command, use `lint:xliff -` (append a dash) instead to make it explicit.
  31. 4.4.0
  32. -----
  33. * deprecated support for using `null` as the locale in `Translator`
  34. * deprecated accepting STDIN implicitly when using the `lint:xliff` command, use `lint:xliff -` (append a dash) instead to make it explicit.
  35. * Marked the `TranslationDataCollector` class as `@final`.
  36. 4.3.0
  37. -----
  38. * Improved Xliff 1.2 loader to load the original file's metadata
  39. * Added `TranslatorPathsPass`
  40. 4.2.0
  41. -----
  42. * Started using ICU parent locales as fallback locales.
  43. * allow using the ICU message format using domains with the "+intl-icu" suffix
  44. * deprecated `Translator::transChoice()` in favor of using `Translator::trans()` with a `%count%` parameter
  45. * deprecated `TranslatorInterface` in favor of `Symfony\Contracts\Translation\TranslatorInterface`
  46. * deprecated `MessageSelector`, `Interval` and `PluralizationRules`; use `IdentityTranslator` instead
  47. * Added `IntlFormatter` and `IntlFormatterInterface`
  48. * added support for multiple files and directories in `XliffLintCommand`
  49. * Marked `Translator::getFallbackLocales()` and `TranslationDataCollector::getFallbackLocales()` as internal
  50. 4.1.0
  51. -----
  52. * The `FileDumper::setBackup()` method is deprecated.
  53. * The `TranslationWriter::disableBackup()` method is deprecated.
  54. * The `XliffFileDumper` will write "name" on the "unit" node when dumping XLIFF 2.0.
  55. 4.0.0
  56. -----
  57. * removed the backup feature of the `FileDumper` class
  58. * removed `TranslationWriter::writeTranslations()` method
  59. * removed support for passing `MessageSelector` instances to the constructor of the `Translator` class
  60. 3.4.0
  61. -----
  62. * Added `TranslationDumperPass`
  63. * Added `TranslationExtractorPass`
  64. * Added `TranslatorPass`
  65. * Added `TranslationReader` and `TranslationReaderInterface`
  66. * Added `<notes>` section to the Xliff 2.0 dumper.
  67. * Improved Xliff 2.0 loader to load `<notes>` section.
  68. * Added `TranslationWriterInterface`
  69. * Deprecated `TranslationWriter::writeTranslations` in favor of `TranslationWriter::write`
  70. * added support for adding custom message formatter and decoupling the default one.
  71. * Added `PhpExtractor`
  72. * Added `PhpStringTokenParser`
  73. 3.2.0
  74. -----
  75. * Added support for escaping `|` in plural translations with double pipe.
  76. 3.1.0
  77. -----
  78. * Deprecated the backup feature of the file dumper classes.
  79. 3.0.0
  80. -----
  81. * removed `FileDumper::format()` method.
  82. * Changed the visibility of the locale property in `Translator` from protected to private.
  83. 2.8.0
  84. -----
  85. * deprecated FileDumper::format(), overwrite FileDumper::formatCatalogue() instead.
  86. * deprecated Translator::getMessages(), rely on TranslatorBagInterface::getCatalogue() instead.
  87. * added `FileDumper::formatCatalogue` which allows format the catalogue without dumping it into file.
  88. * added option `json_encoding` to JsonFileDumper
  89. * added options `as_tree`, `inline` to YamlFileDumper
  90. * added support for XLIFF 2.0.
  91. * added support for XLIFF target and tool attributes.
  92. * added message parameters to DataCollectorTranslator.
  93. * [DEPRECATION] The `DiffOperation` class has been deprecated and
  94. will be removed in Symfony 3.0, since its operation has nothing to do with 'diff',
  95. so the class name is misleading. The `TargetOperation` class should be used for
  96. this use-case instead.
  97. 2.7.0
  98. -----
  99. * added DataCollectorTranslator for collecting the translated messages.
  100. 2.6.0
  101. -----
  102. * added possibility to cache catalogues
  103. * added TranslatorBagInterface
  104. * added LoggingTranslator
  105. * added Translator::getMessages() for retrieving the message catalogue as an array
  106. 2.5.0
  107. -----
  108. * added relative file path template to the file dumpers
  109. * added optional backup to the file dumpers
  110. * changed IcuResFileDumper to extend FileDumper
  111. 2.3.0
  112. -----
  113. * added classes to make operations on catalogues (like making a diff or a merge on 2 catalogues)
  114. * added Translator::getFallbackLocales()
  115. * deprecated Translator::setFallbackLocale() in favor of the new Translator::setFallbackLocales() method
  116. 2.2.0
  117. -----
  118. * QtTranslationsLoader class renamed to QtFileLoader. QtTranslationsLoader is deprecated and will be removed in 2.3.
  119. * [BC BREAK] uniformized the exception thrown by the load() method when an error occurs. The load() method now
  120. throws Symfony\Component\Translation\Exception\NotFoundResourceException when a resource cannot be found
  121. and Symfony\Component\Translation\Exception\InvalidResourceException when a resource is invalid.
  122. * changed the exception class thrown by some load() methods from \RuntimeException to \InvalidArgumentException
  123. (IcuDatFileLoader, IcuResFileLoader and QtFileLoader)
  124. 2.1.0
  125. -----
  126. * added support for more than one fallback locale
  127. * added support for extracting translation messages from templates (Twig and PHP)
  128. * added dumpers for translation catalogs
  129. * added support for QT, gettext, and ResourceBundles