Skip to content

Commit

Permalink
Fix Project LibStatus langs
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-john committed Oct 3, 2019
1 parent 35c6008 commit 13e456d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion htdocs/projet/class/project.class.php
Expand Up @@ -949,6 +949,7 @@ public function getLibStatut($mode = 0)
public function LibStatut($status, $mode = 0)
{
// phpcs:enable
global $langs;

$statustrans = array(
0 => 'status0',
Expand All @@ -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);

}

Expand Down

0 comments on commit 13e456d

Please sign in to comment.