소스 검색

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",
     "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"
-}
+}

+ 2 - 0
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__",

+ 4 - 0
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');