瀏覽代碼

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

Felix Michels 7 年之前
父節點
當前提交
0bbfa632f7
共有 3 個文件被更改,包括 9 次插入1 次删除
  1. 3 1
      i18n/de.i18n.json
  2. 2 0
      i18n/en.i18n.json
  3. 4 0
      models/activities.js

+ 3 - 1
i18n/de.i18n.json

@@ -2,6 +2,8 @@
     "accept": "Akzeptieren",
     "accept": "Akzeptieren",
     "act-activity-notify": "[Wekan] Aktivitätsbenachrichtigung",
     "act-activity-notify": "[Wekan] Aktivitätsbenachrichtigung",
     "act-addAttachment": "hat __attachment__ an __card__ angehängt",
     "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-addComment": "hat __card__ kommentiert: __comment__",
     "act-createBoard": "hat __board__ erstellt",
     "act-createBoard": "hat __board__ erstellt",
     "act-createCard": "hat __card__ zu __list__ hinzugefügt",
     "act-createCard": "hat __card__ zu __list__ hinzugefügt",
@@ -389,4 +391,4 @@
     "no": "Nein",
     "no": "Nein",
     "accounts": "Konten",
     "accounts": "Konten",
     "accounts-allowEmailChange": "Zulassen E-Mail ändern"
     "accounts-allowEmailChange": "Zulassen E-Mail ändern"
-}
+}

+ 2 - 0
i18n/en.i18n.json

@@ -2,6 +2,8 @@
     "accept": "Accept",
     "accept": "Accept",
     "act-activity-notify": "[Wekan] Activity Notification",
     "act-activity-notify": "[Wekan] Activity Notification",
     "act-addAttachment": "attached __attachment__ to __card__",
     "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-addComment": "commented on __card__: __comment__",
     "act-createBoard": "created __board__",
     "act-createBoard": "created __board__",
     "act-createCard": "added __card__ to __list__",
     "act-createCard": "added __card__ to __list__",

+ 4 - 0
models/activities.js

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