12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace Symfony\Component\Translation\Dumper;
- use Symfony\Component\Translation\MessageCatalogue;
- class IniFileDumper extends FileDumper
- {
-
- public function formatCatalogue(MessageCatalogue $messages, $domain, array $options = array())
- {
- $output = '';
- foreach ($messages->all($domain) as $source => $target) {
- $escapeTarget = str_replace('"', '\"', $target);
- $output .= $source.'="'.$escapeTarget."\"\n";
- }
- return $output;
- }
-
- protected function getExtension()
- {
- return 'ini';
- }
- }
|