diff --git a/core/lib/Drupal/Component/Gettext/PoHeader.php b/core/lib/Drupal/Component/Gettext/PoHeader.php index 1d841cc124..a45382ad14 100644 --- a/core/lib/Drupal/Component/Gettext/PoHeader.php +++ b/core/lib/Drupal/Component/Gettext/PoHeader.php @@ -255,7 +255,7 @@ private function parseHeader($header) { foreach ($lines as $line) { if ($line) { list($tag, $contents) = explode(":", $line, 2); - $header_parsed[trim($tag)] = trim($contents); + $header_parsed[trim(ltrim($tag,'"'))] = trim(rtrim($contents,'"\n')); } } return $header_parsed;