summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Michels <felix.michels@deutschebahn.com>2017-09-22 09:50:40 +0200
committerFelix Michels <felix.michels@deutschebahn.com>2017-09-22 09:50:40 +0200
commit0bbfa632f77cf52333af312a4694bbcce6de92b7 (patch)
tree6e8d493e0ef9e2772dee6c6053b88ccdc8b026c2
parentf98d640e1eae92d98eea3ae10cc46198a51f8f26 (diff)
downloadwekan-0bbfa632f77cf52333af312a4694bbcce6de92b7.tar.gz
wekan-0bbfa632f77cf52333af312a4694bbcce6de92b7.tar.bz2
wekan-0bbfa632f77cf52333af312a4694bbcce6de92b7.zip
add translation (en/de) for email notifications regarding checklists and checklist items
-rw-r--r--i18n/de.i18n.json4
-rw-r--r--i18n/en.i18n.json2
-rw-r--r--models/activities.js4
3 files changed, 9 insertions, 1 deletions
diff --git a/i18n/de.i18n.json b/i18n/de.i18n.json
index bf1004c3..01e72176 100644
--- a/i18n/de.i18n.json
+++ b/i18n/de.i18n.json
@@ -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"
-} \ No newline at end of file
+}
diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json
index 62b9cc67..64a720db 100644
--- a/i18n/en.i18n.json
+++ b/i18n/en.i18n.json
@@ -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__",
diff --git a/models/activities.js b/models/activities.js
index c732a940..4ddcfa72 100644
--- a/models/activities.js
+++ b/models/activities.js
@@ -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');