OK this is a design problem I guess, or maybe a bug.
Here it goes.
I have defined the following DEFINES in a portuguese language file:
[code:1]DEFINE('_UE_CONNECTIONREMOVESUCCESSFULL','Ligação removida com sucesso!');
DEFINE('_UE_CONNECTIONADDSUCCESSFULL','Ligação adicionada com sucesso!');[/code:1]
(note the special portuguese characters)
Now in
function addConnection($connectionid,$umsg=null)
You have the following code:
[code:1]if($ueConfig) {
$msg = _UE_CONNECTIONPENDINGACCEPTANCE;
$subject= _UE_CONNECTIONPENDSUB;
$messageHTML = _UE_CONNECTIONPENDMSG;
} else {
$msg = _UE_CONNECTIONADDSUCCESSFULL;
$subject= _UE_CONNECTIONMADESUB;
$messageHTML = _UE_CONNECTIONMADEMSG;
}
$messageText = $messageHTML;
$result = $this->_notifyConnectionChange($this->referenceid,$connectionid,$msg,$subject,$messageHTML,$messageText,$umsg);
$_PLUGINS->trigger( 'onAfterAddConnection', array($this->referenceid,$connectionid,$ueConfig,$ueConfig));
return $result;[/code:1]
Which produces the following messagebox:
See image ADD in zip file in other post.
And in
function removeConnection($userid,$connectionid)
You have the following code:
[code:1]$msg = _UE_CONNECTIONREMOVESUCCESSFULL;
$subject = _UE_CONNECTIONREMOVED_SUB;
$messageHTML = _UE_CONNECTIONREMOVED_MSG;
$messageText = $messageHTML;
$result = $this->_notifyConnectionChange($userid,$connectionid,$msg,$subject,$messageHTML,$messageText);
$_PLUGINS->trigger( 'onAfterRemoveConnection', array($userid,$connectionid,$ueConfig,$ueConfig));
return $result;[/code:1]
Which produces the following two messagesboxes:
See image YOUSURE in zip file in other post.
See image REMOVE in zip file in other post.
You may see that I have defined the strings adequately.
[code:1]DEFINE ("_UHOH","Anyone? Can somebody help?"«»);
_post_final_question ();
// CBTEAM ANSWERING ME
function _post_final_question () {
global $resolved_in_stable, $errortype, $iswaitanswershort;
$emotion ="Fingers Xd!";
if (!($resolved_in_stable)) {
if ( ($errortype == _ET_BUG) && ( $iswaitasnwershort)){
_askCBTeam( "How can I solve it?"«»);
return _waitForAnswer( $emotion);
}
// THIS MUST BE A DESIGN ISSUE
elseif ( ( $errortype == _ET_DESIGN) && ( $iswaitasnwershort)) {
_askCBTeam( "You willing to change the design?"«»);
return _waitForAnswer( $emotion);
}
else {
$emotion = _UHOH;
return _waitForAnswer( $emotion);
}
}
else {
$emotion = "Dang, now it's reinstall time!"
return _okWillReinstall( $emotion);
}
}[/code:1]
Post edited by: MadPax, at: 2006/05/12 14:20