DataObjects/pman.links.ini
[Pman.Core] / I18n.php
index c0ea330..afd8950 100644 (file)
--- a/I18n.php
+++ b/I18n.php
@@ -94,8 +94,11 @@ class Pman_Core_i18N extends Pman
         $this->authUser = $au;
         
         $ff= HTML_FlexyFramework::get();
+        
+        
         $opts = empty($ff->Pman_Core_I18N) ? (empty($ff->Pman_I18N) ? array() : $ff->Pman_I18N)  : $ff->Pman_Core_I18N;
         
+        
         // load the cofiguration
         foreach($opts as $k=>$v) {
             
@@ -202,11 +205,11 @@ class Pman_Core_i18N extends Pman
     }
     function objToList($type, $obj) {
         $ret = array();
-        echo '<PRE>';print_r($this->cfg);
-        
+         
          
         foreach($this->cfg[$type] as $k) {
             $sub = false;
+            
             if (strpos($k, '_') !== false) {
                 $bits = explode('_', $k);
                 $k = array_shift($bits);
@@ -219,7 +222,7 @@ class Pman_Core_i18N extends Pman
             }
             
             $ret[] = array(
-                'code'=>   $type=='l' ? strtolower($k) : strtoupper($k), 
+                'code'=>   ($type=='l' ? strtolower($k) : strtoupper($k)) . ($sub ? '_'.strtoupper($sub) : ''), 
                 'title' => $v
             );
         }