From 232a9289ce473cb50f58cfe3b6bd6c6d27824ad2 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 15 Sep 2011 12:00:21 +0800 Subject: [PATCH] I18n.php --- I18n.php | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/I18n.php b/I18n.php index 27a27f85..b1e8aca8 100644 --- 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 -- 2.39.2