[pLog-svn] r1945 - in plog/branches/plog-1.0.1:
. class/summary/action class/summary/view
Oscar Renalias
oscar at renalias.net
Thu May 5 22:51:19 GMT 2005
whoops, just removed the debug stuff.
Regarding the other problem... double-whoops :( I just noticed that
when caching a page we should take the language into account, or else
it will use the last language that was requested by a user. For the
time being, a workaround consists of disabling caching.
Oscar
On 6 May 2005, at 00:50, Reto Hugi wrote:
> 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
>
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.plogworld.net
> http://devel.plogworld.net/mailman/listinfo/plog-svn
>
>
More information about the pLog-svn
mailing list