Fix #7553 - translations
authorAlan <alan@roojs.com>
Tue, 17 Jan 2023 08:31:37 +0000 (16:31 +0800)
committerAlan <alan@roojs.com>
Tue, 17 Jan 2023 08:31:37 +0000 (16:31 +0800)
HTML/Template/Flexy/Compiler/Flexy.php
HTML/Template/Flexy/Compiler/Standard.php

index 6336057..c0ce562 100644 (file)
@@ -817,6 +817,11 @@ class HTML_Template_Flexy_Compiler_Flexy extends HTML_Template_Flexy_Compiler {
         if (substr($string, 0, 4) == '<!--') {
             return;
         }
+        if (substr($string, 0, 13) == '/*<![CDATA[*/') {
+            return;
+        }
+        
+        
         
         $GLOBALS['_HTML_TEMPLATE_FLEXY_COMPILER']['gettextStrings'][] = $string;
     }
index b4a5fe4..d60dd98 100644 (file)
@@ -667,6 +667,8 @@ class HTML_Template_Flexy_Compiler_Standard extends HTML_Template_Flexy_Compiler
         if (substr($element->value,0,4) == '<!--') {
             return $this->appendHtml($element->value);
         }
+        
+         
         // ignore anything wrapped with {_( .... )_}
         if ($this->inGetTextBlock) {
             return $this->appendHtml($element->value);