[Chameleon-dev] [Bug 961] ClearWFSFilter contains hardcoded message in English

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Wed Feb 15 10:52:39 EST 2006


http://bugzilla.maptools.org/show_bug.cgi?id=961

nsavard at dmsolutions.ca changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED



------- Additional Comments From nsavard at dmsolutions.ca  2006-02-15 10:52 -------
I investigated on Windows and I found that it was not really a bug.  Chameleon
uses the "$aszLang" session variable to create the MLT instance.  This variable
is initialized by the "CWCAddRegionalTemplate" Chameleon method call in the
application file.  If this variable is not initialized, the "maszLanguage" MLT
member is empty and the resource is never loaded by the "loadResource" MLT method.

Solution:  We have to call "CWCAddRegionalTemplate" Chameleon method with the
name of the template we used eventhough we are using only one language.

Suggestion:  In chameleon.php we could add a test to verify if the "$aszLang"
session variable is empty, if yes we could use "mszCurrentLanguage" Chameleon
member instead (see code snippet below).

---------------------------------

if( count($_SESSION['aszLang']) )
{
    $this->moGlobalMLT = new MLTPHPInclude( $szUniqueFileName,
                         $_SESSION['aszLang'], MLT_NOCACHE );
}
else if ( isset( $this->mszCurrentLanguage) )
{

    $this->moGlobalMLT = new MLTPHPInclude( $szUniqueFileName,
                       $this->mszCurrentLanguage, MLT_NOCACHE );
}



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Chameleon-dev mailing list