add translation (en/de) for email notifications regarding checklists and checklist items

This commit is contained in:
Felix Michels 2017-09-22 09:50:40 +02:00
parent f98d640e1e
commit 0bbfa632f7
3 changed files with 9 additions and 1 deletions

View file

@ -2,6 +2,8 @@
"accept": "Akzeptieren",
"act-activity-notify": "[Wekan] Aktivitätsbenachrichtigung",
"act-addAttachment": "hat __attachment__ an __card__ angehängt",
"act-addChecklist": "hat die Checklist __checklist__ zu __card__ hinzugefügt",
"act-addChecklistItem": "hat __checklistItem__ zur Checkliste __checklist__ in __card__ hinzugefügt",
"act-addComment": "hat __card__ kommentiert: __comment__",
"act-createBoard": "hat __board__ erstellt",
"act-createCard": "hat __card__ zu __list__ hinzugefügt",
@ -389,4 +391,4 @@
"no": "Nein",
"accounts": "Konten",
"accounts-allowEmailChange": "Zulassen E-Mail ändern"
}
}

View file

@ -2,6 +2,8 @@
"accept": "Accept",
"act-activity-notify": "[Wekan] Activity Notification",
"act-addAttachment": "attached __attachment__ to __card__",
"act-addChecklist": "added checklist __checklist__ to __card__",
"act-addChecklistItem": "added __checklistItem__ to checklist __checklist__ on __card__",
"act-addComment": "commented on __card__: __comment__",
"act-createBoard": "created __board__",
"act-createCard": "added __card__ to __list__",

View file

@ -119,6 +119,10 @@ if (Meteor.isServer) {
const checklist = activity.checklist();
params.checklist = checklist.title;
}
if (activity.checklistItemId) {
const checklistItem = activity.checklistItem();
params.checklistItem = checklistItem.title;
}
if (board) {
const watchingUsers = _.pluck(_.where(board.watchers, {level: 'watching'}), 'userId');
const trackingUsers = _.pluck(_.where(board.watchers, {level: 'tracking'}), 'userId');