diff options
author | wei <> | 2006-01-06 05:16:25 +0000 |
---|---|---|
committer | wei <> | 2006-01-06 05:16:25 +0000 |
commit | ed3e43d30524a76969fb7d42cb5e613c2e1a1d9a (patch) | |
tree | 7f0cd531766635363527715fd4614eb56df0a80c /framework/I18N/Translation.php | |
parent | 4835704a04cf5aa5ec71a8aef902d54b9c6cae82 (diff) |
Changing property scopes in TGlobalization
Diffstat (limited to 'framework/I18N/Translation.php')
-rw-r--r-- | framework/I18N/Translation.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/framework/I18N/Translation.php b/framework/I18N/Translation.php index 8b420bbf..8f45ff64 100644 --- a/framework/I18N/Translation.php +++ b/framework/I18N/Translation.php @@ -56,12 +56,12 @@ class Translation extends TComponent $config['source'],
$config['filename']);
- $source->setCulture($app->Culture);
+ $source->setCulture($app->getCulture());
if($config['cache'])
$source->setCache(new MessageCache($config['cache']));
- self::$formatter = new MessageFormat($source, $app->Charset);
+ self::$formatter = new MessageFormat($source, $app->getCharset());
//save the message on end request
Prado::getApplication()->attachEventHandler(
@@ -92,7 +92,7 @@ class Translation extends TComponent $config = $app->getTranslationConfiguration();
if(isset($config['autosave']))
{
- $formatter->getSource()->setCulture($app->Culture);
+ $formatter->getSource()->setCulture($app->getCulture());
$formatter->getSource()->save($config['catalogue']);
}
$onceonly = false;
@@ -129,7 +129,7 @@ function localize($text, $parameters=array(), $catalogue=null, $charset=null) $catalogue = $config['catalogue'];
//globalization charset
- $appCharset = is_null($app) ? '' : $app->Charset;
+ $appCharset = is_null($app) ? '' : $app->getCharset();
//default charset
$defaultCharset = (is_null($app)) ? 'UTF-8' : $app->getDefaultCharset();
|