I18n.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 15 Sep 2011 04:00:21 +0000 (12:00 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 15 Sep 2011 04:00:21 +0000 (12:00 +0800)
I18n.php

index 27a27f8..b1e8aca 100644 (file)
--- a/I18n.php
+++ b/I18n.php
@@ -282,48 +282,6 @@ class Pman_Core_I18N extends Pman
         
         
     }
-    
-    
-    
-    function buildDB($ltype= false, $inlang= false )
-    {
-        if ($ltype === false) {
-            
-            die("OOPS NO LTYPE");
-        }
-        if ($inlang == '**') {
-            return; // dont bother building generic..
-        }
-        if ($inlang === false) {
-            foreach( $this->cfg['t'] as $l) {
-                $this->buildDB($ltype, $l);
-            }
-            return;
-        }
-        
-        $list =  $this->getDefaultCfg($ltype);
-        
-        DB_DataObject::debugLevel(1);
-        
-        foreach($list as $lkey) {
-            $x = DB_DataObject::factory('i18n');
-            $x->ltype = $ltype;
-            $x->lkey = $lkey;
-            $x->inlang= $inlang;
-            if ($x->find(true)) {
-                $xx= clone($x);
-                $x->lval = $this->translate($inlang, $ltype, $lkey);
-                $x->update($xx);
-                continue;
-            }
-            $x->lval = $this->translate($inlang, $ltype, $lkey);
-            $x->insert();
-            
-        }
-        
-        
-        
-        
-    }
+     
     
 }
\ No newline at end of file