Pman.Dialog.CmsBlog.bjs
[Pman.Cms] / OutputTranslations.php
index 18d56ca..7a48aea 100644 (file)
@@ -6,13 +6,18 @@ class Pman_Cms_OutputTranslations extends Pman
 {
     var $lang = 'en';
     
-    function get($lang)
+    function get($lang = '',  $opts = array())
     {
         if(!empty($lang)){
             $this->lang = $lang;
         }
-        print_R('run??');exit;
-        $this->getTranslationsCache();
+        $projects = array();
+        
+        foreach ($this->modules() as $m){
+            $projects[] = "Pman.{$m}";
+        }
+        
+        $this->getTranslationsCache($projects);
         exit;
     }
     
@@ -75,7 +80,7 @@ class Pman_Cms_OutputTranslations extends Pman
         
         $this->cachePath = session_save_path() . '/' .
                 $ui['name'] . '-' . $ff->project . '-templatestr/' . 
-                $ff->project . '-' . $ff->version . '.fulloutput.json';
+                $ff->project . '-' . $ff->version . '-' . $this->lang . '.fulloutput.json';
         
         $is_new = false;