From 70323388c6fd73a32e2b2f722b6d6b533f38d5e3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 9 Jul 2009 23:47:59 +0000 Subject: [PATCH] Look: Some enhancements in look and themes --- htdocs/html.form.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/htdocs/html.form.class.php b/htdocs/html.form.class.php index 50fc317669f..53fdfa25e0c 100644 --- a/htdocs/html.form.class.php +++ b/htdocs/html.form.class.php @@ -1041,8 +1041,11 @@ class Form $opt.= dol_trunc($objp->label,18).' - '; if ($objp->fprice != '') // Keep != '' { + $currencytext=$langs->trans("Currency".$conf->monnaie); + if (strlen($currencytext) > 10) $currencytext=$conf->monnaie; // If text is too long, we use the short code + $opt.= price($objp->fprice); - $opt.= $langs->trans("Currency".$conf->monnaie)."/".$objp->quantity; + $opt.= ' '.$currencytext."/".$objp->quantity; if ($objp->quantity == 1) { $opt.= strtolower($langs->trans("Unit")); @@ -1054,7 +1057,7 @@ class Form if ($objp->quantity >= 1) { $opt.=" ("; - $opt.= price($objp->unitprice).$langs->trans("Currency".$conf->monnaie)."/".strtolower($langs->trans("Unit")); + $opt.= price($objp->unitprice).' '.$currencytext."/".strtolower($langs->trans("Unit")); $opt.=")"; } if ($objp->duration) $opt .= " - ".$objp->duration;