From 5fb15ff0f88e7b45ad586d5f6d489c2a0851a08f Mon Sep 17 00:00:00 2001 From: AdrianDominik Date: Thu, 16 Jan 2020 14:01:41 +0100 Subject: [PATCH] FIX: add traslate from remains holidays --- htdocs/holiday/card.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php index 26a210f40e0..9cc287cd28a 100644 --- a/htdocs/holiday/card.php +++ b/htdocs/holiday/card.php @@ -991,7 +991,9 @@ if ((empty($id) && empty($ref)) || $action == 'add' || $action == 'request' || $ { $nb_type = $object->getCPforUser($user->id, $val['rowid']); $nb_holiday += $nb_type; - $out .= ' - '.$val['label'].': '.($nb_type ?price2num($nb_type) : 0).'
'; + + $out .= ' - ' . ($langs->trans($val['code']) != $val['code'] ? $langs->trans($val['code']) : $val['label']) .': '.($nb_type ?price2num($nb_type) : 0).'
'; + //$out .= ' - '.$val['label'].': '.($nb_type ?price2num($nb_type) : 0).'
'; } print $langs->trans('SoldeCPUser', round($nb_holiday, 5)).'
'; print $out;