Fix: Bad translation for actions

This commit is contained in:
Laurent Destailleur 2008-10-20 00:40:15 +00:00
parent 4d97b3fc37
commit 955b263a15
2 changed files with 5 additions and 5 deletions

View File

@ -234,8 +234,8 @@ class ActionComm
$this->type_id = $obj->type_id; $this->type_id = $obj->type_id;
$this->type_code = $obj->type_code; $this->type_code = $obj->type_code;
$transcode=$langs->trans("Action".$obj->code); $transcode=$langs->trans("Action".$obj->type_code);
$type_libelle=($transcode!="Action".$obj->code?$transcode:$obj->libelle); $type_libelle=($transcode!="Action".$obj->type_code?$transcode:$obj->libelle);
$this->type = $type_libelle; $this->type = $type_libelle;
$this->label = $obj->label; $this->label = $obj->label;

View File

@ -73,7 +73,7 @@ function show_array_actions_to_do($max=5)
print "<tr $bc[$var]>"; print "<tr $bc[$var]>";
$staticaction->code=$obj->code; $staticaction->type_code=$obj->code;
$staticaction->libelle=$obj->libelle; $staticaction->libelle=$obj->libelle;
$staticaction->id=$obj->id; $staticaction->id=$obj->id;
print '<td>'.$staticaction->getNomUrl(1,12).'</td>'; print '<td>'.$staticaction->getNomUrl(1,12).'</td>';
@ -183,8 +183,8 @@ function show_array_last_actions_done($max=5)
print "</tr>\n"; print "</tr>\n";
$i++; $i++;
} }
// TODO Ajouter rappel pour "il y a des contrats à mettre en service" // TODO Ajouter rappel pour "il y a des contrats <EFBFBD> mettre en service"
// TODO Ajouter rappel pour "il y a des contrats qui arrivent à expiration" // TODO Ajouter rappel pour "il y a des contrats qui arrivent <EFBFBD> expiration"
print "</table><br>"; print "</table><br>";
$db->free($resql); $db->free($resql);