You are here

public function XliffFileDumper::dump in Plug 7

Dumps the message catalogue.

Parameters

MessageCatalogue $messages The message catalogue:

array $options Options that are used by the dumper:

Overrides FileDumper::dump

File

lib/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);
}