TranslationWriter

class TranslationWriter

TranslationWriter writes translation messages.

Methods

addDumper(string $format, DumperInterface $dumper)

Adds a dumper to the writer.

disableBackup()

Disables dumper backup.

array getFormats()

Obtains the list of supported formats.

writeTranslations(MessageCatalogue $catalogue, string $format, array $options = array())

Writes translation from the catalogue according to the selected format.

Details

addDumper(string $format, DumperInterface $dumper)

Adds a dumper to the writer.

Parameters

string $format The format of the dumper
DumperInterface $dumper The dumper

disableBackup()

Disables dumper backup.

array getFormats()

Obtains the list of supported formats.

Return Value

array

writeTranslations(MessageCatalogue $catalogue, string $format, array $options = array())

Writes translation from the catalogue according to the selected format.

Parameters

MessageCatalogue $catalogue The message catalogue to dump
string $format The format to use to dump the messages
array $options Options that are passed to the dumper

Exceptions

InvalidArgumentException
doc_Symfony
2016-10-28 06:35:18
Comments
Leave a Comment

Please login to continue.