Unit in PDF 15.0.1

Hi all.
Dolibarr 15.0.1
PRODUCT_USE_UNITS - 1 (enable)

After generate PDF (proporsal or invoice) data in Table “Unit” language displays only from [Dictionaries] in any language. Using default PDF template (azur, crobe).
How to fix this?

I have cheked pdf.lib.php

function pdf_getlineunit($object, $i, $outputlangs, $hidedetails = 0, $hookmanager = false)

also in pdf.azur.modules.php

// Unit
					if (!empty($conf->global->PRODUCT_USE_UNITS)) {
						$unit = pdf_getlineunit($object, $i, $outputlangs, $hidedetails, $hookmanager);
						$pdf->SetXY($this->posxunit, $curY);
						$pdf->MultiCell($this->posxdiscount - $this->posxunit - 0.8, 4, $unit, 0, 'L');

in the Setup-Translations: SizeUnitm = different on each language.

Have cleared cache in browers.

just try var_dump $unit and $this->posxunit to see whether they are same. Else you may need to track the source of assignment of new unit.

thanks,
yesbee

$this->posxunit
int(163) int(163)

$unit
string(2) "pc" string(2) "pc"

i’m confused
i not good in PHP so i made issue UNIT in PDF not show correct translation · Issue #20604 · Dolibarr/dolibarr · GitHub