From 622d704c66c83d690afeed34bbd46d94214cb637 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 15 Sep 2011 12:11:18 +0800 Subject: [PATCH] I18n.php --- I18n.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/I18n.php b/I18n.php index bcf9c79d..ceba5fc6 100644 --- a/I18n.php +++ b/I18n.php @@ -132,9 +132,7 @@ class Pman_Core_I18N extends Pman function outputJavascript() { - require_once 'I18Nv2/Country.php'; - require_once 'I18Nv2/Language.php'; - require_once 'I18Nv2/Currency.php'; + $i = DB_DataObject::Factory('I18n'); $langs = $this->cfg['t']; // var_dump($langs);exit; @@ -144,9 +142,9 @@ class Pman_Core_I18N extends Pman $rlang = array_shift(explode('_', strtoupper($lang))); $ar[$lang] = array( - 'l' => $this->objToList('l', new I18Nv2_Language($rlang, 'UTF-8')), - 'c' => $this->objToList('c', new I18Nv2_Country($rlang, 'UTF-8')), - 'm' => $this->objToList('m', new I18Nv2_Currency($rlang, 'UTF-8')) + 'l' => $i->toTransList('l', $rlang), + 'c' => $i->toTransList('c', $rlang), + 'm' => $ti->toTransList('m', $rlang), ); } //echo '
';print_r($ar);
@@ -157,6 +155,14 @@ class Pman_Core_I18N extends Pman
         
         
     }
+    
+    function transToList($type, $tolang)
+    {
+        
+        
+        
+    }
+    
     function objToList($type, $obj) {
         $ret = array();
          
-- 
2.39.2