Author: fabien
Date: 2010-03-29 10:25:39 +0200 (Mon, 29 Mar 2010)
New Revision: 28843

Modified:
   branches/1.3/lib/i18n/extract/sfI18nPhpExtractor.class.php
   branches/1.4/lib/i18n/extract/sfI18nPhpExtractor.class.php
Log:
[1.3, 1.4] fixed  i18n extractor keeps acumulating texts when more than 1 
Heredoc string is used (closes #8166 - patch from gonrial)

Modified: branches/1.3/lib/i18n/extract/sfI18nPhpExtractor.class.php
===================================================================
--- branches/1.3/lib/i18n/extract/sfI18nPhpExtractor.class.php  2010-03-29 
08:18:46 UTC (rev 28842)
+++ branches/1.3/lib/i18n/extract/sfI18nPhpExtractor.class.php  2010-03-29 
08:25:39 UTC (rev 28843)
@@ -75,6 +75,7 @@
             if ($buffer)
             {
               $strings[] = $buffer;
+              $buffer = '';
             }
             $i18n_function = 0;
             break;

Modified: branches/1.4/lib/i18n/extract/sfI18nPhpExtractor.class.php
===================================================================
--- branches/1.4/lib/i18n/extract/sfI18nPhpExtractor.class.php  2010-03-29 
08:18:46 UTC (rev 28842)
+++ branches/1.4/lib/i18n/extract/sfI18nPhpExtractor.class.php  2010-03-29 
08:25:39 UTC (rev 28843)
@@ -75,6 +75,7 @@
             if ($buffer)
             {
               $strings[] = $buffer;
+              $buffer = '';
             }
             $i18n_function = 0;
             break;

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.

Reply via email to