InterfaceTranslations.php
authorAlan Knowles <alan@roojs.com>
Mon, 19 Aug 2013 03:56:45 +0000 (11:56 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 19 Aug 2013 03:56:45 +0000 (11:56 +0800)
InterfaceTranslations.php

index 18ef7cb..8ae3771 100644 (file)
@@ -53,7 +53,7 @@ class Pman_Admin_InterfaceTranslations extends Pman_Admin_Translations
             $data = $this->loadTranslateDB($lang,$module);
             
             $j = new Services_JSON();
-            echo "_T.{$lang}= Roo.apply( _T.{$lang} || { }, " .  $j->stringify($data, null, 4) . ");\n";
+            echo "_T = _T || {} ; _T.{$lang}= Roo.apply( _T.{$lang} || { }, " .  $j->stringify($data, null, 4) . ");\n";
             
         }
         exit;