I18n.php
[Pman.Core] / I18n.php
index 9146cc0..edc9e68 100644 (file)
--- a/I18n.php
+++ b/I18n.php
@@ -102,7 +102,7 @@ class Pman_Core_i18N extends Pman
         // load the cofiguration
         foreach($opts as $k=>$v) {
             
-            if ($v == '*') {
+            if ($v == '*') { // everything..
                 $this->cfg[$k] = $this->getDefaultCfg($k);
                 continue;
             }
@@ -158,9 +158,8 @@ class Pman_Core_i18N extends Pman
             case 'BuildDB':
             // by admin only?!?
                 //DB_DataObject::debugLevel(1);
-                $this->buildDb('l');
-                $this->buildDb('c');
-                $this->buildDb('m');
+                $i = DB_DataObject::Factory('I18n');
+                $i->buildDb();
                 die("DONE!");
                 break;
                   
@@ -222,7 +221,7 @@ class Pman_Core_i18N extends Pman
             }
             
             $ret[] = array(
-                'code'=>   $type=='l' ? strtolower($k) : strtoupper($k) . ($sub ? '_'.strtoupper($sub) : ''), 
+                'code'=>   ($type=='l' ? strtolower($k) : strtoupper($k)) . ($sub ? '_'.strtoupper($sub) : ''), 
                 'title' => $v
             );
         }