Dumper\PoFileDumper (Component\Translation)
Symfony\Component\Translation\Dumper\PoFileDumper
class PoFileDumper extends FileDumper
PoFileDumper generates a gettext formatted string representation of a message catalogue.
Methods
setRelativePathTemplate(string $relativePathTemplate) Sets the template for the relative paths to files. | from FileDumper | |
setBackup(bool $backup) Sets backup flag. | from FileDumper | |
dump(MessageCatalogue $messages, array $options = array()) Dumps the message catalogue. | from FileDumper | |
string | formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array()) Transforms a domain of a message catalogue to its string representation. |
Details
public setRelativePathTemplate(string $relativePathTemplate)
Sets the template for the relative paths to files.
public setBackup(bool $backup)
Sets backup flag.
public dump(MessageCatalogue $messages, array $options = array())
Dumps the message catalogue.
public string formatCatalogue(MessageCatalogue $messages, string $domain, array $options = array())
Transforms a domain of a message catalogue to its string representation.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Translation/Dumper/PoFileDumper.html