From: Alan Knowles Date: Thu, 15 Sep 2011 04:00:21 +0000 (+0800) Subject: I18n.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=232a9289ce473cb50f58cfe3b6bd6c6d27824ad2 I18n.php --- 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