summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
Diffstat (limited to 'framework/TApplication.php')
-rw-r--r--framework/TApplication.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/framework/TApplication.php b/framework/TApplication.php
index fd341b43..1b7e4cd1 100644
--- a/framework/TApplication.php
+++ b/framework/TApplication.php
@@ -757,8 +757,16 @@ class TApplication extends TComponent
$this->_user=$user;
}
+ /**
+ * @return TGlobalization globalization module
+ */
public function getGlobalization()
{
+ if($this->_globalization===null)
+ {
+ $this->_globalization=Prado::createComponent('System.I18N.TGlobalization');
+ $this->_globalization->init(null);
+ }
return $this->_globalization;
}