Fix translation
This commit is contained in:
parent
2457d07d1a
commit
936699786a
@ -973,7 +973,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add')
|
|||||||
$nb_type = $object->getCPforUser($user->id, $val['rowid']);
|
$nb_type = $object->getCPforUser($user->id, $val['rowid']);
|
||||||
$nb_holiday += $nb_type;
|
$nb_holiday += $nb_type;
|
||||||
|
|
||||||
$out .= ' - '.($langs->trans($val['code']) != $val['code'] ? $langs->trans($val['code']) : $val['label']).': <strong>'.($nb_type ?price2num($nb_type) : 0).'</strong><br>';
|
$out .= ' - '.($langs->trans($val['code']) != $val['code'] ? $langs->trans($val['code']) : $val['label']).': <strong>'.($nb_type ? price2num($nb_type) : 0).'</strong><br>';
|
||||||
//$out .= ' - '.$val['label'].': <strong>'.($nb_type ?price2num($nb_type) : 0).'</strong><br>';
|
//$out .= ' - '.$val['label'].': <strong>'.($nb_type ?price2num($nb_type) : 0).'</strong><br>';
|
||||||
}
|
}
|
||||||
print $langs->trans('SoldeCPUser', round($nb_holiday, 5)).'<br>';
|
print $langs->trans('SoldeCPUser', round($nb_holiday, 5)).'<br>';
|
||||||
|
|||||||
@ -153,7 +153,7 @@ if (!empty($conf->holiday->enabled))
|
|||||||
{
|
{
|
||||||
$nb_type = $holiday->getCPforUser($user->id, $val['rowid']);
|
$nb_type = $holiday->getCPforUser($user->id, $val['rowid']);
|
||||||
$nb_holiday += $nb_type;
|
$nb_holiday += $nb_type;
|
||||||
$out .= ' - '.$val['label'].': <strong>'.($nb_type ?price2num($nb_type) : 0).'</strong><br>';
|
$out .= ' - '.($langs->trans($val['code']) != $val['code'] ? $langs->trans($val['code']) : $val['label']).': <strong>'.($nb_type ? price2num($nb_type) : 0).'</strong><br>';
|
||||||
}
|
}
|
||||||
print $langs->trans('SoldeCPUser', round($nb_holiday, 5)).'<br>';
|
print $langs->trans('SoldeCPUser', round($nb_holiday, 5)).'<br>';
|
||||||
print $out;
|
print $out;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user