0" class="badge right" title="Points">
+ 0" class="badge right"
+ [title]="strings['boards_taskPoints'] ">
{{ taskData.points }}
@@ -18,25 +21,27 @@
- Assigned To:
+ {{ strings['boards_taskAssignedTo'] }}:
{{ assignee.username }}
- Unassigned
+ {{ strings['boards_taskUnassigned'] }}
- Due: {{ taskData.due_date }}
+ {{ strings['boards_taskDue'] }}: {{ taskData.due_date }}
+ [title]="taskData.comments.length +
+ strings['boards_taskComments']">
-
+ [title]="taskData.attachments.length +
+ strings['boards_taskAttachments']">
+
{{ category.name }}
diff --git a/src/app/board/task/task.component.ts b/src/app/board/task/task.component.ts
index 2b63d75..42c36dd 100644
--- a/src/app/board/task/task.component.ts
+++ b/src/app/board/task/task.component.ts
@@ -19,7 +19,8 @@ import {
UserOptions,
AuthService,
ModalService,
- NotificationsService
+ NotificationsService,
+ StringsService
} from '../../shared/index';
import { BoardService } from '../board.service';
@@ -28,6 +29,7 @@ import { BoardService } from '../board.service';
templateUrl: 'app/board/task/task.component.html'
})
export class TaskDisplay implements OnInit {
+ private strings: any;
private userOptions: UserOptions;
private contextMenuItems: Array;
private selectMenuItem: ContextMenuItem;
@@ -55,12 +57,21 @@ export class TaskDisplay implements OnInit {
private sanitizer: DomSanitizer,
private boardService: BoardService,
private modal: ModalService,
- private notes: NotificationsService) {
+ private notes: NotificationsService,
+ private stringsService: StringsService) {
this.totalTasks = 0;
this.completeTasks = 0;
this.percentComplete = 0;
this.contextMenuItems = [];
+ stringsService.stringsChanged.subscribe(newStrings => {
+ this.strings = newStrings;
+
+ if (this.taskData) {
+ this.generateContextMenuItems();
+ }
+ });
+
auth.userChanged.subscribe(() => {
this.userOptions = auth.userOptions;
});
@@ -98,7 +109,9 @@ export class TaskDisplay implements OnInit {
}
getPercentTitle() {
- return 'Task ' + (this.percentComplete * 100) + '% Complete';
+ return this.strings.boards_task + ' ' +
+ (this.percentComplete * 100).toFixed(0) + '% ' +
+ this.strings.boards_taskComplete;
}
// Expects a color in full HEX with leading #, e.g. #ffffe0
@@ -112,7 +125,8 @@ export class TaskDisplay implements OnInit {
}
private getMoveMenuItem() {
- let menuText = 'Move to Column: