class TranslationWriter implements TranslationWriterInterface
TranslationWriter writes translation messages.
addDumper(string $format, DumperInterface $dumper) Adds a dumper to the writer. | ||
disableBackup() deprecated Disables dumper backup. | ||
array | getFormats() Obtains the list of supported formats. | |
write(MessageCatalogue $catalogue, string $format, array $options = array()) Writes translation from the catalogue according to the selected format. |
Adds a dumper to the writer.
string | $format | The format of the dumper |
DumperInterface | $dumper | The dumper |
deprecated
Disables dumper backup.
Obtains the list of supported formats.
array |
Writes translation from the catalogue according to the selected format.
MessageCatalogue | $catalogue | The message catalogue to write |
string | $format | The format to use to dump the messages |
array | $options | Options that are passed to the dumper |
InvalidArgumentException |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Translation/Writer/TranslationWriter.html