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

index 21f7c0d..34e98ff 100644 (file)
@@ -280,7 +280,7 @@ class Pman_Cms_UpdateBjsTemplates extends Pman_Admin_UpdateBjsTemplates
                 $textValue = $text->__toString();
 
                 // a text is translatable if its name starts with 'tr-'
-                if(strpos($textName, 'tr-') === 0) {
+                if(strpos($textName, 'tr-') === 0 && !in_array($textValue, $strings[$slide])) {
                     $strings[$slide][] = $text->__toString();
                 }
             }