Fix missing trans
This commit is contained in:
parent
7ced36c991
commit
f045761826
3 changed files with 3 additions and 3 deletions
|
|
@ -434,7 +434,6 @@ Gzip
|
|||
HTTPBasicPassword
|
||||
HelpAbandonProductReturned
|
||||
HideVersionLink
|
||||
HolidayStarted
|
||||
Hook
|
||||
Hooks
|
||||
IBANNotDefined
|
||||
|
|
|
|||
|
|
@ -1618,7 +1618,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
|
|||
if (($object->date_fin > dol_now()) || !empty($user->admin)) {
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=cancel&token='.newToken().'" class="butAction">'.$langs->trans("ActionCancelCP").'</a>';
|
||||
} else {
|
||||
print '<a href="#" class="butActionRefused classfortooltip" title="'.$langs->trans("HolidayStarted").'-'.$langs->trans("NotAllowed").'">'.$langs->trans("ActionCancelCP").'</a>';
|
||||
print '<a href="#" class="butActionRefused classfortooltip" title="'.$langs->trans("HolidayStarted").' - '.$langs->trans("NotAllowed").'">'.$langs->trans("ActionCancelCP").'</a>';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1628,7 +1628,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
|
|||
if (($object->date_fin > dol_now()) || !empty($user->admin) || $user->id == $object->fk_user_approve) {
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?id='.$object->id.'&action=cancel&token='.newToken().'" class="butAction">'.$langs->trans("ActionCancelCP").'</a>';
|
||||
} else {
|
||||
print '<a href="#" class="butActionRefused classfortooltip" title="'.$langs->trans("HolidayStarted").'-'.$langs->trans("NotAllowed").'">'.$langs->trans("ActionCancelCP").'</a>';
|
||||
print '<a href="#" class="butActionRefused classfortooltip" title="'.$langs->trans("HolidayStarted").' - '.$langs->trans("NotAllowed").'">'.$langs->trans("ActionCancelCP").'</a>';
|
||||
}
|
||||
} else { // I have no rights on the user of the holiday.
|
||||
if (!empty($user->admin)) { // If current approver can't cancel an approved leave, we allow admin user
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
HRM=HRM
|
||||
Holidays=Leaves
|
||||
Holiday=Leave
|
||||
HolidayStarted=Leave started
|
||||
CPTitreMenu=Leave
|
||||
MenuReportMonth=Monthly statement
|
||||
MenuAddCP=New leave request
|
||||
|
|
|
|||
Loading…
Reference in a new issue