diff options
author | xue <> | 2006-04-16 14:43:51 +0000 |
---|---|---|
committer | xue <> | 2006-04-16 14:43:51 +0000 |
commit | 2983057ad91ccdef1fef86a85fe8e888350c3384 (patch) | |
tree | 6eb89e44b6d141d69779f8b2a26d18aeec641ee0 /framework/PradoBase.php | |
parent | eeb97a9e51e87a359c2c069fc64b04b80d9ebe95 (diff) |
Fixed a few issues with using Globalization.
Diffstat (limited to 'framework/PradoBase.php')
-rw-r--r-- | framework/PradoBase.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/PradoBase.php b/framework/PradoBase.php index 329bb5da..e0c8cc52 100644 --- a/framework/PradoBase.php +++ b/framework/PradoBase.php @@ -533,14 +533,14 @@ class PradoBase public static function localize($text, $parameters=array(), $catalogue=null, $charset=null)
{
Prado::using('System.I18N.Translation');
- $app = Prado::getApplication()->getGlobalization();
+ $app = Prado::getApplication()->getGlobalization(false);
$params = array();
foreach($parameters as $key => $value)
$params['{'.$key.'}'] = $value;
//no translation handler provided
- if(($config = $app->getTranslationConfiguration())===null)
+ if($app===null || ($config = $app->getTranslationConfiguration())===null)
return strtr($text, $params);
Translation::init();
|