| 148 |
lars |
1 |
CHANGELOG
|
|
|
2 |
=========
|
|
|
3 |
|
| 688 |
lars |
4 |
6.2.7
|
|
|
5 |
-----
|
|
|
6 |
|
|
|
7 |
* [BC BREAK] The following data providers for `ProviderFactoryTestCase` are now static:
|
|
|
8 |
`supportsProvider()`, `createProvider()`, `unsupportedSchemeProvider()`and `incompleteDsnProvider()`
|
|
|
9 |
* [BC BREAK] `ProviderTestCase::toStringProvider()` is now static
|
|
|
10 |
|
| 148 |
lars |
11 |
6.2
|
|
|
12 |
---
|
|
|
13 |
|
|
|
14 |
* Deprecate `PhpStringTokenParser`
|
|
|
15 |
* Deprecate `PhpExtractor` in favor of `PhpAstExtractor`
|
|
|
16 |
* Add `PhpAstExtractor` (requires [nikic/php-parser](https://github.com/nikic/php-parser) to be installed)
|
|
|
17 |
|
|
|
18 |
6.1
|
|
|
19 |
---
|
|
|
20 |
|
|
|
21 |
* Parameters implementing `TranslatableInterface` are processed
|
|
|
22 |
* Add the file extension to the `XliffFileDumper` constructor
|
|
|
23 |
|
|
|
24 |
5.4
|
|
|
25 |
---
|
|
|
26 |
|
|
|
27 |
* Add `github` format & autodetection to render errors as annotations when
|
|
|
28 |
running the XLIFF linter command in a Github Actions environment.
|
|
|
29 |
* Translation providers are not experimental anymore
|
|
|
30 |
|
|
|
31 |
5.3
|
|
|
32 |
---
|
|
|
33 |
|
|
|
34 |
* Add `translation:pull` and `translation:push` commands to manage translations with third-party providers
|
|
|
35 |
* Add `TranslatorBagInterface::getCatalogues` method
|
|
|
36 |
* Add support to load XLIFF string in `XliffFileLoader`
|
|
|
37 |
|
|
|
38 |
5.2.0
|
|
|
39 |
-----
|
|
|
40 |
|
|
|
41 |
* added support for calling `trans` with ICU formatted messages
|
|
|
42 |
* added `PseudoLocalizationTranslator`
|
|
|
43 |
* added `TranslatableMessage` objects that represent a message that can be translated
|
|
|
44 |
* added the `t()` function to easily create `TranslatableMessage` objects
|
|
|
45 |
* Added support for extracting messages from `TranslatableMessage` objects
|
|
|
46 |
|
|
|
47 |
5.1.0
|
|
|
48 |
-----
|
|
|
49 |
|
|
|
50 |
* added support for `name` attribute on `unit` element from xliff2 to be used as a translation key instead of always the `source` element
|
|
|
51 |
|
|
|
52 |
5.0.0
|
|
|
53 |
-----
|
|
|
54 |
|
|
|
55 |
* removed support for using `null` as the locale in `Translator`
|
|
|
56 |
* removed `TranslatorInterface`
|
|
|
57 |
* removed `MessageSelector`
|
|
|
58 |
* removed `ChoiceMessageFormatterInterface`
|
|
|
59 |
* removed `PluralizationRule`
|
|
|
60 |
* removed `Interval`
|
|
|
61 |
* removed `transChoice()` methods, use the trans() method instead with a %count% parameter
|
|
|
62 |
* removed `FileDumper::setBackup()` and `TranslationWriter::disableBackup()`
|
|
|
63 |
* removed `MessageFormatter::choiceFormat()`
|
|
|
64 |
* added argument `$filename` to `PhpExtractor::parseTokens()`
|
|
|
65 |
* removed support for implicit STDIN usage in the `lint:xliff` command, use `lint:xliff -` (append a dash) instead to make it explicit.
|
|
|
66 |
|
|
|
67 |
4.4.0
|
|
|
68 |
-----
|
|
|
69 |
|
|
|
70 |
* deprecated support for using `null` as the locale in `Translator`
|
|
|
71 |
* deprecated accepting STDIN implicitly when using the `lint:xliff` command, use `lint:xliff -` (append a dash) instead to make it explicit.
|
|
|
72 |
* Marked the `TranslationDataCollector` class as `@final`.
|
|
|
73 |
|
|
|
74 |
4.3.0
|
|
|
75 |
-----
|
|
|
76 |
|
|
|
77 |
* Improved Xliff 1.2 loader to load the original file's metadata
|
|
|
78 |
* Added `TranslatorPathsPass`
|
|
|
79 |
|
|
|
80 |
4.2.0
|
|
|
81 |
-----
|
|
|
82 |
|
|
|
83 |
* Started using ICU parent locales as fallback locales.
|
|
|
84 |
* allow using the ICU message format using domains with the "+intl-icu" suffix
|
|
|
85 |
* deprecated `Translator::transChoice()` in favor of using `Translator::trans()` with a `%count%` parameter
|
|
|
86 |
* deprecated `TranslatorInterface` in favor of `Symfony\Contracts\Translation\TranslatorInterface`
|
|
|
87 |
* deprecated `MessageSelector`, `Interval` and `PluralizationRules`; use `IdentityTranslator` instead
|
|
|
88 |
* Added `IntlFormatter` and `IntlFormatterInterface`
|
|
|
89 |
* added support for multiple files and directories in `XliffLintCommand`
|
|
|
90 |
* Marked `Translator::getFallbackLocales()` and `TranslationDataCollector::getFallbackLocales()` as internal
|
|
|
91 |
|
|
|
92 |
4.1.0
|
|
|
93 |
-----
|
|
|
94 |
|
|
|
95 |
* The `FileDumper::setBackup()` method is deprecated.
|
|
|
96 |
* The `TranslationWriter::disableBackup()` method is deprecated.
|
|
|
97 |
* The `XliffFileDumper` will write "name" on the "unit" node when dumping XLIFF 2.0.
|
|
|
98 |
|
|
|
99 |
4.0.0
|
|
|
100 |
-----
|
|
|
101 |
|
|
|
102 |
* removed the backup feature of the `FileDumper` class
|
|
|
103 |
* removed `TranslationWriter::writeTranslations()` method
|
|
|
104 |
* removed support for passing `MessageSelector` instances to the constructor of the `Translator` class
|
|
|
105 |
|
|
|
106 |
3.4.0
|
|
|
107 |
-----
|
|
|
108 |
|
|
|
109 |
* Added `TranslationDumperPass`
|
|
|
110 |
* Added `TranslationExtractorPass`
|
|
|
111 |
* Added `TranslatorPass`
|
|
|
112 |
* Added `TranslationReader` and `TranslationReaderInterface`
|
|
|
113 |
* Added `<notes>` section to the Xliff 2.0 dumper.
|
|
|
114 |
* Improved Xliff 2.0 loader to load `<notes>` section.
|
|
|
115 |
* Added `TranslationWriterInterface`
|
|
|
116 |
* Deprecated `TranslationWriter::writeTranslations` in favor of `TranslationWriter::write`
|
|
|
117 |
* added support for adding custom message formatter and decoupling the default one.
|
|
|
118 |
* Added `PhpExtractor`
|
|
|
119 |
* Added `PhpStringTokenParser`
|
|
|
120 |
|
|
|
121 |
3.2.0
|
|
|
122 |
-----
|
|
|
123 |
|
|
|
124 |
* Added support for escaping `|` in plural translations with double pipe.
|
|
|
125 |
|
|
|
126 |
3.1.0
|
|
|
127 |
-----
|
|
|
128 |
|
|
|
129 |
* Deprecated the backup feature of the file dumper classes.
|
|
|
130 |
|
|
|
131 |
3.0.0
|
|
|
132 |
-----
|
|
|
133 |
|
|
|
134 |
* removed `FileDumper::format()` method.
|
|
|
135 |
* Changed the visibility of the locale property in `Translator` from protected to private.
|
|
|
136 |
|
|
|
137 |
2.8.0
|
|
|
138 |
-----
|
|
|
139 |
|
|
|
140 |
* deprecated FileDumper::format(), overwrite FileDumper::formatCatalogue() instead.
|
|
|
141 |
* deprecated Translator::getMessages(), rely on TranslatorBagInterface::getCatalogue() instead.
|
|
|
142 |
* added `FileDumper::formatCatalogue` which allows format the catalogue without dumping it into file.
|
|
|
143 |
* added option `json_encoding` to JsonFileDumper
|
|
|
144 |
* added options `as_tree`, `inline` to YamlFileDumper
|
|
|
145 |
* added support for XLIFF 2.0.
|
|
|
146 |
* added support for XLIFF target and tool attributes.
|
|
|
147 |
* added message parameters to DataCollectorTranslator.
|
|
|
148 |
* [DEPRECATION] The `DiffOperation` class has been deprecated and
|
|
|
149 |
will be removed in Symfony 3.0, since its operation has nothing to do with 'diff',
|
|
|
150 |
so the class name is misleading. The `TargetOperation` class should be used for
|
|
|
151 |
this use-case instead.
|
|
|
152 |
|
|
|
153 |
2.7.0
|
|
|
154 |
-----
|
|
|
155 |
|
|
|
156 |
* added DataCollectorTranslator for collecting the translated messages.
|
|
|
157 |
|
|
|
158 |
2.6.0
|
|
|
159 |
-----
|
|
|
160 |
|
|
|
161 |
* added possibility to cache catalogues
|
|
|
162 |
* added TranslatorBagInterface
|
|
|
163 |
* added LoggingTranslator
|
|
|
164 |
* added Translator::getMessages() for retrieving the message catalogue as an array
|
|
|
165 |
|
|
|
166 |
2.5.0
|
|
|
167 |
-----
|
|
|
168 |
|
|
|
169 |
* added relative file path template to the file dumpers
|
|
|
170 |
* added optional backup to the file dumpers
|
|
|
171 |
* changed IcuResFileDumper to extend FileDumper
|
|
|
172 |
|
|
|
173 |
2.3.0
|
|
|
174 |
-----
|
|
|
175 |
|
|
|
176 |
* added classes to make operations on catalogues (like making a diff or a merge on 2 catalogues)
|
|
|
177 |
* added Translator::getFallbackLocales()
|
|
|
178 |
* deprecated Translator::setFallbackLocale() in favor of the new Translator::setFallbackLocales() method
|
|
|
179 |
|
|
|
180 |
2.2.0
|
|
|
181 |
-----
|
|
|
182 |
|
|
|
183 |
* QtTranslationsLoader class renamed to QtFileLoader. QtTranslationsLoader is deprecated and will be removed in 2.3.
|
|
|
184 |
* [BC BREAK] uniformized the exception thrown by the load() method when an error occurs. The load() method now
|
|
|
185 |
throws Symfony\Component\Translation\Exception\NotFoundResourceException when a resource cannot be found
|
|
|
186 |
and Symfony\Component\Translation\Exception\InvalidResourceException when a resource is invalid.
|
|
|
187 |
* changed the exception class thrown by some load() methods from \RuntimeException to \InvalidArgumentException
|
|
|
188 |
(IcuDatFileLoader, IcuResFileLoader and QtFileLoader)
|
|
|
189 |
|
|
|
190 |
2.1.0
|
|
|
191 |
-----
|
|
|
192 |
|
|
|
193 |
* added support for more than one fallback locale
|
|
|
194 |
* added support for extracting translation messages from templates (Twig and PHP)
|
|
|
195 |
* added dumpers for translation catalogs
|
|
|
196 |
* added support for QT, gettext, and ResourceBundles
|