diff --git a/htdocs/core/class/html.formfiscalyear.class.php b/htdocs/core/class/html.formfiscalyear.class.php index 2cacad330ec..ed44ac4b736 100644 --- a/htdocs/core/class/html.formfiscalyear.class.php +++ b/htdocs/core/class/html.formfiscalyear.class.php @@ -91,8 +91,8 @@ class FormFiscalYear extends Form while ($i < $num) { $obj = $this->db->fetch_object($resql); - $titletoshowhtml = ($maxlen ? dol_trunc($obj->label, $maxlen) : $obj->label).' ('.$obj->date_start.' - '.$obj->date_end.')'; - $titletoshow = ($maxlen ? dol_trunc($obj->label, $maxlen) : $obj->label).' ('.$obj->date_start.' - '.$obj->date_end.')'; + $titletoshowhtml = ($maxlen ? dol_trunc($obj->label, $maxlen) : $obj->label).' ('.$obj->date_start . " - " . $obj->date_end.')'; + $titletoshow = ($maxlen ? dol_trunc($obj->label, $maxlen) : $obj->label).' ('.$langs->transnoentitiesnoconv("FiscalYearFromTo", $obj->date_start, $obj->date_end).')'; $out .= '