mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-11 02:12:33 +01:00
Translated paper formats and size units in PDF admin page
This commit is contained in:
@@ -339,7 +339,9 @@ class FormAdmin
|
||||
while ($i < $num)
|
||||
{
|
||||
$obj=$this->db->fetch_object($resql);
|
||||
$paperformat[$obj->code]= $langs->trans('PaperFormat'.strtoupper($obj->code)).' - '.round($obj->width).'x'.round($obj->height).' '.$obj->unit;
|
||||
$unitKey = $langs->trans('SizeUnit'.$obj->unit);
|
||||
|
||||
$paperformat[$obj->code]= $langs->trans('PaperFormat'.strtoupper($obj->code)).' - '.round($obj->width).'x'.round($obj->height).' '.($unitKey == 'SizeUnit'.$obj->unit ? $obj->unit : $unitKey);
|
||||
|
||||
$i++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user