From 955b263a1597d7055fd9a95cca57910a72ba4254 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 20 Oct 2008 00:40:15 +0000 Subject: [PATCH] Fix: Bad translation for actions --- htdocs/actioncomm.class.php | 4 ++-- htdocs/lib/agenda.lib.php | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/htdocs/actioncomm.class.php b/htdocs/actioncomm.class.php index 679bb9e181f..b918b9924c0 100644 --- a/htdocs/actioncomm.class.php +++ b/htdocs/actioncomm.class.php @@ -234,8 +234,8 @@ class ActionComm $this->type_id = $obj->type_id; $this->type_code = $obj->type_code; - $transcode=$langs->trans("Action".$obj->code); - $type_libelle=($transcode!="Action".$obj->code?$transcode:$obj->libelle); + $transcode=$langs->trans("Action".$obj->type_code); + $type_libelle=($transcode!="Action".$obj->type_code?$transcode:$obj->libelle); $this->type = $type_libelle; $this->label = $obj->label; diff --git a/htdocs/lib/agenda.lib.php b/htdocs/lib/agenda.lib.php index e752ba083f6..1d0f3ce2fe8 100644 --- a/htdocs/lib/agenda.lib.php +++ b/htdocs/lib/agenda.lib.php @@ -73,7 +73,7 @@ function show_array_actions_to_do($max=5) print ""; - $staticaction->code=$obj->code; + $staticaction->type_code=$obj->code; $staticaction->libelle=$obj->libelle; $staticaction->id=$obj->id; print ''.$staticaction->getNomUrl(1,12).''; @@ -183,8 +183,8 @@ function show_array_last_actions_done($max=5) print "\n"; $i++; } - // TODO Ajouter rappel pour "il y a des contrats à mettre en service" - // TODO Ajouter rappel pour "il y a des contrats qui arrivent à expiration" + // TODO Ajouter rappel pour "il y a des contrats � mettre en service" + // TODO Ajouter rappel pour "il y a des contrats qui arrivent � expiration" print "
"; $db->free($resql);