From 92764962d3cdd48bae7fc17a5a3cd9fd72518711 Mon Sep 17 00:00:00 2001 From: maxlamontagne Date: Mon, 19 Aug 2013 22:33:44 -0400 Subject: [PATCH] Update PhpExtractor.php Upgrade PhpExtractor for single or double quoted strings. --- .../Bundle/FrameworkBundle/Translation/PhpExtractor.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.php b/src/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.php index 1eb36052b3e97..fba00a8ec0f99 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.php @@ -111,7 +111,9 @@ protected function parseTokens($tokens, MessageCatalogue $catalog) } } - $message = trim($message, '\''); + $message = strpos($message, '<<<') === 0 + ? null + : trim($message, substr($message, 0, 1)); if ($message) { $catalog->set($message, $this->prefix.$message);