From b9c0ea36914f761049f51dbd7c38700eec7485d9 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 22 Oct 2017 04:07:54 +0200 Subject: [PATCH] Update commondocgenerator.class.php --- htdocs/core/class/commondocgenerator.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/commondocgenerator.class.php b/htdocs/core/class/commondocgenerator.class.php index e544a2ccb16..972275059bb 100644 --- a/htdocs/core/class/commondocgenerator.class.php +++ b/htdocs/core/class/commondocgenerator.class.php @@ -511,8 +511,8 @@ abstract class CommonDocGenerator 'line_multicurrency_total_ttc_locale' => price($line->multicurrency_total_ttc, 0, $outputlangs), // Units - 'line_unit'=>$line->getLabelOfUnit('long'), - 'line_unit_short'=>$line->getLabelOfUnit('short'), + 'line_unit'=>$outputlangs->trans($line->getLabelOfUnit('long')), + 'line_unit_short'=>$outputlangs->trans($line->getLabelOfUnit('short')), ); // Retrieve extrafields