I18n.php
[Pman.Core] / I18n.php
index 2dec4d0..6168fb9 100644 (file)
--- a/I18n.php
+++ b/I18n.php
@@ -169,7 +169,7 @@ class Pman_Core_I18n extends Pman
         if (!empty($_REQUEST['debug'])) {
             DB_DataObject::debugLevel(1);
         }
-        print_r('ininin');
+        
         $i = DB_DataObject::Factory('I18n');
         $i->buildDB();
       
@@ -181,7 +181,8 @@ class Pman_Core_I18n extends Pman
         $ar = array();
         foreach($langs as $lang)
         {
-            $rlang = array_shift(explode('_', strtoupper($lang)));
+            //$rlang = array_shift(explode('_', strtoupper($lang)));
+            $rlang = array_shift(explode('_', $lang));
             
             $ar[$lang] = array();
             $i = DB_DataObject::Factory('I18n');
@@ -192,8 +193,8 @@ class Pman_Core_I18n extends Pman
             $ar[$lang]['m'] = $i->toTransList('m', $rlang);
         }
         //echo '<PRE>';print_r($ar);
-        header('Content-type: text/javascript');
-        echo 'Pman.I18n.Data = ' .  json_encode($ar);
+//        header('Content-type: text/javascript');
+//        echo 'Pman.I18n.Data = ' .  json_encode($ar);
         exit;