diff --git a/src/components/tasks/partials/relatedTasks.vue b/src/components/tasks/partials/relatedTasks.vue index 94b580f4..bcbed131 100644 --- a/src/components/tasks/partials/relatedTasks.vue +++ b/src/components/tasks/partials/relatedTasks.vue @@ -56,9 +56,9 @@
@@ -256,10 +256,7 @@ export default { }) }, relationKindTitle(kind, length) { - if (length > 1) { - return relationKinds[kind][1] - } - return relationKinds[kind][0] + return this.$tc(`task.relation.kinds.${kind}`, length) }, }, } diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index 549265b0..4d12ba09 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -645,7 +645,21 @@ "noneYet": "No task relations yet.", "delete": "Delete Task Relation", "deleteText1": "Are you sure you want to delete this task relation?", - "deleteText2": "This cannot be undone!" + "deleteText2": "This cannot be undone!", + "select": "Select a relation kind", + "kinds": { + "subtask": "Subtask | Subtasks", + "parenttask": "Parent Task | Parent Tasks", + "related": "Related Task | Related Tasks", + "duplicateof": "Duplicate Of | Duplicates Of", + "duplicates": "Duplicates | Duplicates", + "blocking": "Blocking | Blocking", + "blocked": "Blocked By | Blocked By", + "precedes": "Precedes | Precedes", + "follows": "Follows | Follows", + "copiedfrom": "Copied From | Copied From", + "copiedto": "Copied To | Copied To" + } }, "repeat": { "everyDay": "Every Day", diff --git a/src/models/constants/relationKinds.json b/src/models/constants/relationKinds.json index 820a3716..4b3c2e51 100644 --- a/src/models/constants/relationKinds.json +++ b/src/models/constants/relationKinds.json @@ -1,46 +1,12 @@ -{ - "subtask": [ - "Subtask", - "Subtasks" - ], - "parenttask": [ - "Parent Task", - "Parent Tasks" - ], - "related": [ - "Related Task", - "Related Tasks" - ], - "duplicateof": [ - "Duplicate Of", - "Duplicates Of" - ], - "duplicates": [ - "Duplicates", - "Duplicates" - ], - "blocking": [ - "Blocking", - "Blocking" - ], - "blocked": [ - "Blocked By", - "Blocked By" - ], - "precedes": [ - "Precedes", - "Precedes" - ], - "follows": [ - "Follows", - "Follows" - ], - "copiedfrom": [ - "Copied From", - "Copied From" - ], - "copiedto": [ - "Copied To", - "Copied To" - ] -} \ No newline at end of file +[ + "subtask", + "parenttask", + "related", + "duplicates", + "blocking", + "blocked", + "precedes", + "follows", + "copiedfrom", + "copiedto" +] \ No newline at end of file diff --git a/src/views/tasks/TaskDetailView.vue b/src/views/tasks/TaskDetailView.vue index 6635097b..f1acc047 100644 --- a/src/views/tasks/TaskDetailView.vue +++ b/src/views/tasks/TaskDetailView.vue @@ -423,7 +423,6 @@