Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaimund Schlüßler <raimund.schluessler@mailbox.org>2020-02-18 22:02:14 +0300
committerGitHub <noreply@github.com>2020-02-18 22:02:14 +0300
commit9be7159d0a39d2e517a02515253b003b3264a3e8 (patch)
treebc874cc0d4013ed8f3ad736d3a69990cb28ab4b7
parentbc123919f1556a8673a0f417bc4d71e960cd1832 (diff)
parentdaea4012106f50c33603a222ac1f186173cb61be (diff)
Merge pull request #877 from nextcloud/fix/876
Correctly translate task status strings
-rw-r--r--src/store/tasks.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/store/tasks.js b/src/store/tasks.js
index 18235d13..aa840b8f 100644
--- a/src/store/tasks.js
+++ b/src/store/tasks.js
@@ -635,7 +635,7 @@ const actions = {
await task.calendar.dav.createVObject(vData)
.then((response) => {
Vue.set(task, 'dav', response)
- task.syncstatus = new TaskStatus('success', 'Successfully created the task.')
+ task.syncstatus = new TaskStatus('success', OCA.Tasks.$t('tasks', 'Successfully created the task.'))
context.commit('appendTask', task)
context.commit('addTaskToCalendar', task)
const parent = context.getters.getTaskByUid(task.related)
@@ -1132,7 +1132,7 @@ const actions = {
return task.dav.fetchCompleteData()
.then((response) => {
const newTask = new Task(task.dav.data, task.calendar)
- task.syncstatus = new TaskStatus('success', 'Successfully updated the task.')
+ task.syncstatus = new TaskStatus('success', OCA.Tasks.$t('tasks', 'Successfully updated the task.'))
context.commit('updateTask', newTask)
})
.catch((error) => { throw error })
@@ -1201,11 +1201,11 @@ const actions = {
context.commit('setTaskCalendar', { task: task, calendar: calendar })
// Remove the task from the calendar, add it to the new one
context.commit('addTaskToCalendar', task)
- task.syncstatus = new TaskStatus('success', 'Task successfully moved to new calendar.')
+ task.syncstatus = new TaskStatus('success', OCA.Tasks.$t('tasks', 'Task successfully moved to new calendar.'))
})
.catch((error) => {
console.error(error)
- OC.Notification.showTemporary(t('calendars', 'An error occurred'))
+ OC.Notification.showTemporary(OCA.Tasks.$t('tasks', 'An error occurred'))
})
}