I trying to make a multiple language system with ADDT.
I set a session variable and include the related language file.
The language files (it.php, en.php..) contain all kind of text strings.
All works perfectly but I have problem trying to translate the error messages triggered by the Throw error server behaviour.
I set the variable $myerror['text'] and insert it where I should insert the error message text (in code view).
But it doesn't work: I get no error message.
Here is the trigger code:
Code: Select all
//start errore_no_qta trigger
//remove this line if you want to edit the code by hand
function errore_no_qta(&$tNG) {
$myThrowError = new tNG_ThrowError($tNG);
$myThrowError->setErrorMsg($myerror['text']);
$myThrowError->setField("");
$myThrowError->setFieldErrorMsg("");
return $myThrowError->Execute();
}
//end errore_no_qta trigger
TIA all.
tony