diff --git a/src/components/DeleteCompletedModal.vue b/src/components/DeleteCompletedModal.vue index e2de3b2d..cd0369a8 100644 --- a/src/components/DeleteCompletedModal.vue +++ b/src/components/DeleteCompletedModal.vue @@ -33,14 +33,13 @@ License along with this library. If not, see .

{{ n('tasks', - 'This will delete {taskCount} completed task and its subtasks from calendar "{calendarName}".', - 'This will delete {taskCount} completed tasks and their subtasks from calendar "{calendarName}".', + 'This will delete {taskCount} completed task and its subtasks from calendar "%s".', + 'This will delete {taskCount} completed tasks and their subtasks from calendar "%s".', initialCompletedRootTasksCount, { - taskCount: initialCompletedRootTasksCount, - calendarName: calendar.displayName + taskCount: initialCompletedRootTasksCount } - ) }} + ).replace('%s', calendar.displayName) }}

- {{ t('tasks', 'Deleted all completed tasks from calendar "{calendarName}".', {calendarName: calendar.displayName}) }} + {{ t('tasks', 'Deleted all completed tasks from calendar "%s".').replace('%s', calendar.displayName) }}

diff --git a/src/components/Task.vue b/src/components/Task.vue index 772d9043..a58e97d0 100644 --- a/src/components/Task.vue +++ b/src/components/Task.vue @@ -206,7 +206,7 @@ export default { * @returns {String} the placeholder string to show */ subtasksCreationPlaceholder: function() { - return t('tasks', 'Add a subtask to "{task}"…', { task: this.task.summary }) + return t('tasks', 'Add a subtask to "%s"…').replace('%s', this.task.summary) }, /** diff --git a/src/components/TheCollections/Calendar.vue b/src/components/TheCollections/Calendar.vue index 90c9cfe6..1e7c3a5b 100644 --- a/src/components/TheCollections/Calendar.vue +++ b/src/components/TheCollections/Calendar.vue @@ -115,7 +115,7 @@ export default { }, inputString: function() { - return t('tasks', 'Add a task to "{calendar}"...', { calendar: this.calendar.displayName }) + return t('tasks', 'Add a task to "%s"...').replace('%s', this.calendar.displayName) }, /** diff --git a/src/components/TheCollections/General.vue b/src/components/TheCollections/General.vue index c9cb030c..208f5657 100644 --- a/src/components/TheCollections/General.vue +++ b/src/components/TheCollections/General.vue @@ -116,13 +116,13 @@ export default { inputString: function() { switch (this.collectionId) { case 'starred': - return t('tasks', 'Add an important task to "{calendar}"…', { calendar: this.calendar.displayName }) + return t('tasks', 'Add an important task to "%s"…').replace('%s', this.calendar.displayName) case 'today': - return t('tasks', 'Add a task due today to "{calendar}"…', { calendar: this.calendar.displayName }) + return t('tasks', 'Add a task due today to "%s"…').replace('%s', this.calendar.displayName) case 'current': - return t('tasks', 'Add a current task to "{calendar}"…', { calendar: this.calendar.displayName }) + return t('tasks', 'Add a current task to "%s"…').replace('%s', this.calendar.displayName) default: - return t('tasks', 'Add a task to "{calendar}"…', { calendar: this.calendar.displayName }) + return t('tasks', 'Add a task to "%s"…').replace('%s', this.calendar.displayName) } }, ...mapGetters({