You are here

public function XliffFileDumper::dump in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/translation/Dumper/XliffFileDumper.php \Symfony\Component\Translation\Dumper\XliffFileDumper::dump()

Dumps the message catalogue.

Parameters

MessageCatalogue $messages The message catalogue:

array $options Options that are used by the dumper:

Overrides FileDumper::dump

File

vendor/symfony/translation/Dumper/XliffFileDumper.php, line 31

Class

XliffFileDumper
XliffFileDumper generates xliff files from a message catalogue.

Namespace

Symfony\Component\Translation\Dumper

Code

public function dump(MessageCatalogue $messages, $options = array()) {
  if (array_key_exists('default_locale', $options)) {
    $this->defaultLocale = $options['default_locale'];
  }
  else {
    $this->defaultLocale = \Locale::getDefault();
  }
  parent::dump($messages, $options);
}