Trans
This commit is contained in:
parent
2e04aa4e03
commit
4b45c5e723
@ -2526,13 +2526,15 @@ function getTaskProgressBadge($task, $label = '', $tooltip = '')
|
|||||||
|
|
||||||
if (doubleval($progressCalculated) > doubleval($task->progress * $warningRatio)) {
|
if (doubleval($progressCalculated) > doubleval($task->progress * $warningRatio)) {
|
||||||
$badgeClass .= 'badge-danger';
|
$badgeClass .= 'badge-danger';
|
||||||
if (empty($tooltip)) $tooltip = $task->progress.'% < '.$langs->trans("Expected").' '.$progressCalculated.'%';
|
if (empty($tooltip)) {
|
||||||
|
$tooltip = $task->progress.'% < '.$langs->trans("TimeConsumed").' '.$progressCalculated.'%';
|
||||||
|
}
|
||||||
} elseif (doubleval($progressCalculated) > doubleval($task->progress)) { // warning if close at 10%
|
} elseif (doubleval($progressCalculated) > doubleval($task->progress)) { // warning if close at 10%
|
||||||
$badgeClass .= 'badge-warning';
|
$badgeClass .= 'badge-warning';
|
||||||
if (empty($tooltip)) $tooltip = $task->progress.'% < '.$langs->trans("Expected").' '.$progressCalculated.'%';
|
if (empty($tooltip)) $tooltip = $task->progress.'% < '.$langs->trans("TimeConsumed").' '.$progressCalculated.'%';
|
||||||
} else {
|
} else {
|
||||||
$badgeClass .= 'badge-success';
|
$badgeClass .= 'badge-success';
|
||||||
if (empty($tooltip)) $tooltip = $task->progress.'% >= '.$langs->trans("Expected").' '.$progressCalculated.'%';
|
if (empty($tooltip)) $tooltip = $task->progress.'% >= '.$langs->trans("TimeConsumed").' '.$progressCalculated.'%';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -85,6 +85,7 @@ ProgressCalculated=Progress on consumption
|
|||||||
WhichIamLinkedTo=which I'm linked to
|
WhichIamLinkedTo=which I'm linked to
|
||||||
WhichIamLinkedToProject=which I'm linked to project
|
WhichIamLinkedToProject=which I'm linked to project
|
||||||
Time=Time
|
Time=Time
|
||||||
|
TimeConsumed=Consumed
|
||||||
ListOfTasks=List of tasks
|
ListOfTasks=List of tasks
|
||||||
GoToListOfTimeConsumed=Go to list of time consumed
|
GoToListOfTimeConsumed=Go to list of time consumed
|
||||||
GanttView=Gantt View
|
GanttView=Gantt View
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user