Fix Project LibStatus langs

This commit is contained in:
ATM john 2019-10-03 22:05:48 +02:00
parent 35c6008e1a
commit 13e456d992

View File

@ -949,6 +949,7 @@ class Project extends CommonObject
public function LibStatut($status, $mode = 0)
{
// phpcs:enable
global $langs;
$statustrans = array(
0 => 'status0',
@ -961,7 +962,7 @@ class Project extends CommonObject
$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);
}