I18n.php
[Pman.Core] / I18n.php
index dcd1fdd..9146cc0 100644 (file)
--- a/I18n.php
+++ b/I18n.php
@@ -205,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);
@@ -222,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
             );
         }