@@ -85,7 +85,7 @@ will save a few lines::
85
85
86
86
class MyFormatDumper extends FileDumper
87
87
{
88
- protected functionformat (MessageCatalogue $messages, $domain = 'messages' )
88
+ public functionformatCatalogue (MessageCatalogue $messages, $domain, array $options = array() )
89
89
{
90
90
$output = '';
91
91
@@ -102,7 +102,7 @@ will save a few lines::
102
102
}
103
103
}
104
104
105
- The :method:`Symfony\\Component\\Translation\\Dumper\\FileDumper::format `
105
+ The :method:`Symfony\\Component\\Translation\\Dumper\\FileDumper::formatCatalogue `
106
106
method creates the output string, that will be used by the
107
107
:method:`Symfony\\Component\\Translation\\Dumper\\FileDumper::dump` method
108
108
of the FileDumper class to create the file. The dumper can be used like any other
@@ -117,3 +117,7 @@ YAML file are dumped into a text file with the custom format::
117
117
$dumper = new MyFormatDumper();
118
118
$dumper->dump($catalogue, array('path' => __DIR__.'/dumps'));
119
119
120
+ .. note::
121
+
122
+ You can format a message catalogue without dumping it into files by using
123
+ the `formatCatalogue` method.