diff --git a/htdocs/projet/class/project.class.php b/htdocs/projet/class/project.class.php index 2382f93c17a44..d24cbb144fb9b 100644 --- a/htdocs/projet/class/project.class.php +++ b/htdocs/projet/class/project.class.php @@ -949,6 +949,7 @@ public function getLibStatut($mode = 0) public function LibStatut($status, $mode = 0) { // phpcs:enable + global $langs; $statustrans = array( 0 => 'status0', @@ -961,7 +962,7 @@ public function LibStatut($status, $mode = 0) $statusClass = $statustrans[$status]; } - return dolGetStatus($this->statuts_long[$status], $this->statuts_short[$status], '', $statusClass, $mode); + return dolGetStatus($langs->trans($this->statuts_long[$status]), $langs->trans($this->statuts_short[$status]), '', $statusClass, $mode); }