mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-17 16:37:43 +00:00
fix(tasks): move collapsed subtasks label to i18n
The collapsed-subtasks button rendered a hardcoded '+ N sub tasks' string, inconsistent with 'subtasks' used everywhere else and missing from the i18n files. Externalize it to F.TASK.CMP with separate keys for the hide-all and hide-done variants. Closes #7618
This commit is contained in:
parent
f344abfc64
commit
d29c061646
4 changed files with 15 additions and 5 deletions
|
|
@ -8,11 +8,15 @@
|
|||
class="expand-tasks-btn"
|
||||
mat-button
|
||||
>
|
||||
<!--TODO translate -->
|
||||
<em
|
||||
>+ {{ isHideDone() ? doneTasksLength() + ' done ' : allTasksLength() }} sub
|
||||
tasks</em
|
||||
>
|
||||
<em>
|
||||
@if (isHideDone()) {
|
||||
{{
|
||||
T.F.TASK.CMP.SHOW_HIDDEN_DONE_SUB_TASKS | translate: { nr: doneTasksLength() }
|
||||
}}
|
||||
} @else {
|
||||
{{ T.F.TASK.CMP.SHOW_HIDDEN_SUB_TASKS | translate: { nr: allTasksLength() } }}
|
||||
}
|
||||
</em>
|
||||
<mat-icon>expand_more</mat-icon>
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -39,6 +39,7 @@ import { MatButton } from '@angular/material/button';
|
|||
import { MatIcon } from '@angular/material/icon';
|
||||
import { TaskComponent } from '../task/task.component';
|
||||
import { AsyncPipe } from '@angular/common';
|
||||
import { TranslatePipe } from '@ngx-translate/core';
|
||||
import { TaskViewCustomizerService } from '../../task-view-customizer/task-view-customizer.service';
|
||||
import { TaskLog } from '../../../core/log';
|
||||
import { ScheduleExternalDragService } from '../../schedule/schedule-week/schedule-external-drag.service';
|
||||
|
|
@ -91,6 +92,7 @@ export interface DropModelDataForList {
|
|||
CdkDropList,
|
||||
CdkDrag,
|
||||
AsyncPipe,
|
||||
TranslatePipe,
|
||||
forwardRef(() => TaskComponent),
|
||||
],
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1673,6 +1673,8 @@ const T = {
|
|||
REMOVE_FROM_MY_DAY: 'F.TASK.CMP.REMOVE_FROM_MY_DAY',
|
||||
SCHEDULE: 'F.TASK.CMP.SCHEDULE',
|
||||
SET_DEADLINE: 'F.TASK.CMP.SET_DEADLINE',
|
||||
SHOW_HIDDEN_DONE_SUB_TASKS: 'F.TASK.CMP.SHOW_HIDDEN_DONE_SUB_TASKS',
|
||||
SHOW_HIDDEN_SUB_TASKS: 'F.TASK.CMP.SHOW_HIDDEN_SUB_TASKS',
|
||||
TIME_CONFLICT: 'F.TASK.CMP.TIME_CONFLICT',
|
||||
TOGGLE_ATTACHMENTS: 'F.TASK.CMP.TOGGLE_ATTACHMENTS',
|
||||
TOGGLE_DETAIL_PANEL: 'F.TASK.CMP.TOGGLE_DETAIL_PANEL',
|
||||
|
|
|
|||
|
|
@ -1635,6 +1635,8 @@
|
|||
"REMOVE_FROM_MY_DAY": "Remove from Today",
|
||||
"SCHEDULE": "Schedule task",
|
||||
"SET_DEADLINE": "Set deadline",
|
||||
"SHOW_HIDDEN_DONE_SUB_TASKS": "+ {{nr}} done subtasks",
|
||||
"SHOW_HIDDEN_SUB_TASKS": "+ {{nr}} subtasks",
|
||||
"TIME_CONFLICT": "Overlaps with another scheduled task",
|
||||
"TOGGLE_ATTACHMENTS": "Show/hide attachments",
|
||||
"TOGGLE_DETAIL_PANEL": "Show/hide task panel",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue