diff --git a/src/Dumper/Port/SymfonyPort.php b/src/Dumper/Port/SymfonyPort.php index 251000d..417ccfa 100644 --- a/src/Dumper/Port/SymfonyPort.php +++ b/src/Dumper/Port/SymfonyPort.php @@ -38,6 +38,7 @@ public function dumpXliff2($defaultLocale, MessageCatalogue $messages, $domain, foreach ($messages->all($domain) as $source => $target) { $translation = $dom->createElement('unit'); $translation->setAttribute('id', strtr(substr(base64_encode(hash('sha256', $source, true)), 0, 7), '/+', '._')); + $translation->setAttribute('name', $source); $metadata = $messages->getMetadata($source, $domain); // Add notes section