summaryrefslogtreecommitdiff
path: root/framework/TApplication.php
diff options
context:
space:
mode:
authorxue <>2006-03-12 04:56:18 +0000
committerxue <>2006-03-12 04:56:18 +0000
commitca168f68760bfeb868ac80b63e7370f0891aa140 (patch)
tree9f9c47046c97a01f72b61db612d043f93e7e3696 /framework/TApplication.php
parentcb7b7f1929dce12936eca957caa432e74c6dc7de (diff)
Added automatically loading of TGlobalization.
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;
}