diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php
index 3de5c2a5e19..3899990b425 100644
--- a/htdocs/holiday/card.php
+++ b/htdocs/holiday/card.php
@@ -973,7 +973,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add')
$nb_type = $object->getCPforUser($user->id, $val['rowid']);
$nb_holiday += $nb_type;
- $out .= ' - '.($langs->trans($val['code']) != $val['code'] ? $langs->trans($val['code']) : $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)).'
';
diff --git a/htdocs/hrm/index.php b/htdocs/hrm/index.php
index 3ec2a3b898f..f0bbb442acc 100644
--- a/htdocs/hrm/index.php
+++ b/htdocs/hrm/index.php
@@ -153,7 +153,7 @@ if (!empty($conf->holiday->enabled))
{
$nb_type = $holiday->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).'
';
}
print $langs->trans('SoldeCPUser', round($nb_holiday, 5)).'
';
print $out;