From ed3e43d30524a76969fb7d42cb5e613c2e1a1d9a Mon Sep 17 00:00:00 2001 From: wei <> Date: Fri, 6 Jan 2006 05:16:25 +0000 Subject: Changing property scopes in TGlobalization --- framework/I18N/Translation.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/I18N/Translation.php') 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(); -- cgit v1.2.3