Blame view

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