UpdateBjsTemplates.php
authorleon <leon@roojs.com>
Wed, 26 Jul 2023 03:27:49 +0000 (11:27 +0800)
committerleon <leon@roojs.com>
Wed, 26 Jul 2023 03:27:49 +0000 (11:27 +0800)
UpdateBjsTemplates.php

index 394e3a5..21f7c0d 100644 (file)
@@ -277,9 +277,11 @@ class Pman_Cms_UpdateBjsTemplates extends Pman_Admin_UpdateBjsTemplates
 
                 $textName = $property[0]->attributes()->name->__toString();
 
+                $textValue = $text->__toString();
+
                 // a text is translatable if its name starts with 'tr-'
                 if(strpos($textName, 'tr-') === 0) {
-                    $strings[$slide][$textName] = $text->__toString();
+                    $strings[$slide][] = $text->__toString();
                 }
             }
         }