[pLog-svn] r1945 - in plog/branches/plog-1.0.1: . class/summary/action class/summary/view

Reto Hugi plog at hugi.to
Thu May 5 21:50:09 GMT 2005


Hi

Updated all the modified files and tested, but got no good results:

> Modified: plog/branches/plog-1.0.1/class/summary/view/summarycachedview.class.php
> ===================================================================
> +		function _getLocale()
> +		{
> +		    // load the Locale object from the view context or initialize it now
> +		    if( $this->_params->keyExists( "locale" )) {
> +		        print("getting locale from context<br/>");
> +		        $this->_locale = $this->_params->getValue( "locale" );
> +		    }
> +		    else {
> +		        print("loading default locale<br/>");		        
> +		        $config =& Config::getConfig();
> +		        $this->_locale =& Locales::getLocale( $config->getValue("default_locale" ));		        
> +		    }
> +		    
> +		    print("locale code = ".$this->_locale->getLocaleCode());
> +		}
> +		

shouldn't these prints be commented out? This results in error messages
because headers cannot be sent after content. And I tried with
summery.php?lang=de_DE and en_UK but it didn't work...just no reaction.

I always get "loading default locale" and the language set up in the
admin is chosen. Any thing else that needs to be updated? What am I
doing wrong?

Thanks :)
reto





More information about the pLog-svn mailing list