@@ 138-140 (lines=3) @@ | ||
135 | public function getActivityFormat($subjectIdentifier, $subjectParams = [], $ownActivity = false) { |
|
136 | $subject = ''; |
|
137 | switch ($subjectIdentifier) { |
|
138 | case self::SUBJECT_BOARD_CREATE: |
|
139 | $subject = $ownActivity ? $this->l10n->t('You have created a new board {board}'): $this->l10n->t('{user} has created a new board {board}'); |
|
140 | break; |
|
141 | case self::SUBJECT_BOARD_DELETE: |
|
142 | $subject = $ownActivity ? $this->l10n->t('You have deleted the board {board}') : $this->l10n->t('{user} has deleted the board {board}'); |
|
143 | break; |
|
@@ 141-143 (lines=3) @@ | ||
138 | case self::SUBJECT_BOARD_CREATE: |
|
139 | $subject = $ownActivity ? $this->l10n->t('You have created a new board {board}'): $this->l10n->t('{user} has created a new board {board}'); |
|
140 | break; |
|
141 | case self::SUBJECT_BOARD_DELETE: |
|
142 | $subject = $ownActivity ? $this->l10n->t('You have deleted the board {board}') : $this->l10n->t('{user} has deleted the board {board}'); |
|
143 | break; |
|
144 | case self::SUBJECT_BOARD_RESTORE: |
|
145 | $subject = $ownActivity ? $this->l10n->t('You have restored the board {board}') : $this->l10n->t('{user} has restored the board {board}'); |
|
146 | break; |
|
@@ 144-146 (lines=3) @@ | ||
141 | case self::SUBJECT_BOARD_DELETE: |
|
142 | $subject = $ownActivity ? $this->l10n->t('You have deleted the board {board}') : $this->l10n->t('{user} has deleted the board {board}'); |
|
143 | break; |
|
144 | case self::SUBJECT_BOARD_RESTORE: |
|
145 | $subject = $ownActivity ? $this->l10n->t('You have restored the board {board}') : $this->l10n->t('{user} has restored the board {board}'); |
|
146 | break; |
|
147 | case self::SUBJECT_BOARD_SHARE: |
|
148 | $subject = $ownActivity ? $this->l10n->t('You have shared the board {board} with {acl}') : $this->l10n->t('{user} has shared the board {board} with {acl}'); |
|
149 | break; |
|
@@ 147-149 (lines=3) @@ | ||
144 | case self::SUBJECT_BOARD_RESTORE: |
|
145 | $subject = $ownActivity ? $this->l10n->t('You have restored the board {board}') : $this->l10n->t('{user} has restored the board {board}'); |
|
146 | break; |
|
147 | case self::SUBJECT_BOARD_SHARE: |
|
148 | $subject = $ownActivity ? $this->l10n->t('You have shared the board {board} with {acl}') : $this->l10n->t('{user} has shared the board {board} with {acl}'); |
|
149 | break; |
|
150 | case self::SUBJECT_BOARD_UNSHARE: |
|
151 | $subject = $ownActivity ? $this->l10n->t('You have removed {acl} from the board {board}') : $this->l10n->t('{user} has removed {acl} from the board {board}'); |
|
152 | break; |
|
@@ 150-152 (lines=3) @@ | ||
147 | case self::SUBJECT_BOARD_SHARE: |
|
148 | $subject = $ownActivity ? $this->l10n->t('You have shared the board {board} with {acl}') : $this->l10n->t('{user} has shared the board {board} with {acl}'); |
|
149 | break; |
|
150 | case self::SUBJECT_BOARD_UNSHARE: |
|
151 | $subject = $ownActivity ? $this->l10n->t('You have removed {acl} from the board {board}') : $this->l10n->t('{user} has removed {acl} from the board {board}'); |
|
152 | break; |
|
153 | case self::SUBJECT_BOARD_UPDATE_TITLE: |
|
154 | $subject = $ownActivity ? $this->l10n->t('You have renamed the board {before} to {board}') : $this->l10n->t('{user} has renamed the board {before} to {board}'); |
|
155 | break; |
|
@@ 153-155 (lines=3) @@ | ||
150 | case self::SUBJECT_BOARD_UNSHARE: |
|
151 | $subject = $ownActivity ? $this->l10n->t('You have removed {acl} from the board {board}') : $this->l10n->t('{user} has removed {acl} from the board {board}'); |
|
152 | break; |
|
153 | case self::SUBJECT_BOARD_UPDATE_TITLE: |
|
154 | $subject = $ownActivity ? $this->l10n->t('You have renamed the board {before} to {board}') : $this->l10n->t('{user} has renamed the board {before} to {board}'); |
|
155 | break; |
|
156 | case self::SUBJECT_BOARD_UPDATE_ARCHIVED: |
|
157 | if (isset($subjectParams['after']) && $subjectParams['after']) { |
|
158 | $subject = $ownActivity ? $this->l10n->t('You have archived the board {board}') : $this->l10n->t('{user} has archived the board {before}'); |
|
@@ 163-165 (lines=3) @@ | ||
160 | $subject = $ownActivity ? $this->l10n->t('You have unarchived the board {board}') : $this->l10n->t('{user} has unarchived the board {before}'); |
|
161 | } |
|
162 | break; |
|
163 | case self::SUBJECT_STACK_CREATE: |
|
164 | $subject = $ownActivity ? $this->l10n->t('You have created a new stack {stack} on board {board}') : $this->l10n->t('{user} has created a new stack {stack} on board {board}'); |
|
165 | break; |
|
166 | case self::SUBJECT_STACK_UPDATE: |
|
167 | $subject = $ownActivity ? $this->l10n->t('You have created a new stack {stack} on board {board}') : $this->l10n->t('{user} has created a new stack {stack} on board {board}'); |
|
168 | break; |
|
@@ 166-168 (lines=3) @@ | ||
163 | case self::SUBJECT_STACK_CREATE: |
|
164 | $subject = $ownActivity ? $this->l10n->t('You have created a new stack {stack} on board {board}') : $this->l10n->t('{user} has created a new stack {stack} on board {board}'); |
|
165 | break; |
|
166 | case self::SUBJECT_STACK_UPDATE: |
|
167 | $subject = $ownActivity ? $this->l10n->t('You have created a new stack {stack} on board {board}') : $this->l10n->t('{user} has created a new stack {stack} on board {board}'); |
|
168 | break; |
|
169 | case self::SUBJECT_STACK_UPDATE_TITLE: |
|
170 | $subject = $ownActivity ? $this->l10n->t('You have renamed stack {before} to {stack} on board {board}') : $this->l10n->t('{user} has renamed stack {before} to {stack} on board {board}'); |
|
171 | break; |
|
@@ 169-171 (lines=3) @@ | ||
166 | case self::SUBJECT_STACK_UPDATE: |
|
167 | $subject = $ownActivity ? $this->l10n->t('You have created a new stack {stack} on board {board}') : $this->l10n->t('{user} has created a new stack {stack} on board {board}'); |
|
168 | break; |
|
169 | case self::SUBJECT_STACK_UPDATE_TITLE: |
|
170 | $subject = $ownActivity ? $this->l10n->t('You have renamed stack {before} to {stack} on board {board}') : $this->l10n->t('{user} has renamed stack {before} to {stack} on board {board}'); |
|
171 | break; |
|
172 | case self::SUBJECT_STACK_DELETE: |
|
173 | $subject = $ownActivity ? $this->l10n->t('You have deleted stack {stack} on board {board}') : $this->l10n->t('{user} has deleted stack {stack} on board {board}'); |
|
174 | break; |
|
@@ 172-174 (lines=3) @@ | ||
169 | case self::SUBJECT_STACK_UPDATE_TITLE: |
|
170 | $subject = $ownActivity ? $this->l10n->t('You have renamed stack {before} to {stack} on board {board}') : $this->l10n->t('{user} has renamed stack {before} to {stack} on board {board}'); |
|
171 | break; |
|
172 | case self::SUBJECT_STACK_DELETE: |
|
173 | $subject = $ownActivity ? $this->l10n->t('You have deleted stack {stack} on board {board}') : $this->l10n->t('{user} has deleted stack {stack} on board {board}'); |
|
174 | break; |
|
175 | case self::SUBJECT_CARD_CREATE: |
|
176 | $subject = $ownActivity ? $this->l10n->t('You have created card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has created card {card} in stack {stack} on board {board}'); |
|
177 | break; |
|
@@ 175-177 (lines=3) @@ | ||
172 | case self::SUBJECT_STACK_DELETE: |
|
173 | $subject = $ownActivity ? $this->l10n->t('You have deleted stack {stack} on board {board}') : $this->l10n->t('{user} has deleted stack {stack} on board {board}'); |
|
174 | break; |
|
175 | case self::SUBJECT_CARD_CREATE: |
|
176 | $subject = $ownActivity ? $this->l10n->t('You have created card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has created card {card} in stack {stack} on board {board}'); |
|
177 | break; |
|
178 | case self::SUBJECT_CARD_DELETE: |
|
179 | $subject = $ownActivity ? $this->l10n->t('You have deleted card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has deleted card {card} in stack {stack} on board {board}'); |
|
180 | break; |
|
@@ 178-180 (lines=3) @@ | ||
175 | case self::SUBJECT_CARD_CREATE: |
|
176 | $subject = $ownActivity ? $this->l10n->t('You have created card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has created card {card} in stack {stack} on board {board}'); |
|
177 | break; |
|
178 | case self::SUBJECT_CARD_DELETE: |
|
179 | $subject = $ownActivity ? $this->l10n->t('You have deleted card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has deleted card {card} in stack {stack} on board {board}'); |
|
180 | break; |
|
181 | case self::SUBJECT_CARD_UPDATE_TITLE: |
|
182 | $subject = $ownActivity ? $this->l10n->t('You have renamed the card {before} to {card}') : $this->l10n->t('{user} has renamed the card {before} to {card}'); |
|
183 | break; |
|
@@ 181-183 (lines=3) @@ | ||
178 | case self::SUBJECT_CARD_DELETE: |
|
179 | $subject = $ownActivity ? $this->l10n->t('You have deleted card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has deleted card {card} in stack {stack} on board {board}'); |
|
180 | break; |
|
181 | case self::SUBJECT_CARD_UPDATE_TITLE: |
|
182 | $subject = $ownActivity ? $this->l10n->t('You have renamed the card {before} to {card}') : $this->l10n->t('{user} has renamed the card {before} to {card}'); |
|
183 | break; |
|
184 | case self::SUBJECT_CARD_UPDATE_DESCRIPTION: |
|
185 | if (!isset($subjectParams['before'])) { |
|
186 | $subject = $ownActivity ? $this->l10n->t('You have added a description to card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has added a description to card {card} in stack {stack} on board {board}'); |
|
@@ 191-193 (lines=3) @@ | ||
188 | $subject = $ownActivity ? $this->l10n->t('You have updated the description of card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has updated the description of the card {card} in stack {stack} on board {board}'); |
|
189 | } |
|
190 | break; |
|
191 | case self::SUBJECT_CARD_UPDATE_ARCHIVE: |
|
192 | $subject = $ownActivity ? $this->l10n->t('You have archived card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has archived card {card} in stack {stack} on board {board}'); |
|
193 | break; |
|
194 | case self::SUBJECT_CARD_UPDATE_UNARCHIVE: |
|
195 | $subject = $ownActivity ? $this->l10n->t('You have unarchived card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has unarchived card {card} in stack {stack} on board {board}'); |
|
196 | break; |
|
@@ 194-196 (lines=3) @@ | ||
191 | case self::SUBJECT_CARD_UPDATE_ARCHIVE: |
|
192 | $subject = $ownActivity ? $this->l10n->t('You have archived card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has archived card {card} in stack {stack} on board {board}'); |
|
193 | break; |
|
194 | case self::SUBJECT_CARD_UPDATE_UNARCHIVE: |
|
195 | $subject = $ownActivity ? $this->l10n->t('You have unarchived card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has unarchived card {card} in stack {stack} on board {board}'); |
|
196 | break; |
|
197 | case self::SUBJECT_CARD_UPDATE_DUEDATE: |
|
198 | if (!isset($subjectParams['after'])) { |
|
199 | $subject = $ownActivity ? $this->l10n->t('You have removed the due date of card {card}') : $this->l10n->t('{user} has removed the due date of card {card}'); |
|
@@ 207-209 (lines=3) @@ | ||
204 | } |
|
205 | ||
206 | break; |
|
207 | case self::SUBJECT_LABEL_ASSIGN: |
|
208 | $subject = $ownActivity ? $this->l10n->t('You have added the tag {label} to card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has added the tag {label} to card {card} in stack {stack} on board {board}'); |
|
209 | break; |
|
210 | case self::SUBJECT_LABEL_UNASSING: |
|
211 | $subject = $ownActivity ? $this->l10n->t('You have removed the tag {label} from card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has removed the tag {label} from card {card} in stack {stack} on board {board}'); |
|
212 | break; |
|
@@ 210-212 (lines=3) @@ | ||
207 | case self::SUBJECT_LABEL_ASSIGN: |
|
208 | $subject = $ownActivity ? $this->l10n->t('You have added the tag {label} to card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has added the tag {label} to card {card} in stack {stack} on board {board}'); |
|
209 | break; |
|
210 | case self::SUBJECT_LABEL_UNASSING: |
|
211 | $subject = $ownActivity ? $this->l10n->t('You have removed the tag {label} from card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has removed the tag {label} from card {card} in stack {stack} on board {board}'); |
|
212 | break; |
|
213 | case self::SUBJECT_CARD_USER_ASSIGN: |
|
214 | $subject = $ownActivity ? $this->l10n->t('You have assigned {assigneduser} to card {card} on board {board}') : $this->l10n->t('{user} has assigned {assigneduser} to card {card} on board {board}'); |
|
215 | break; |
|
@@ 213-215 (lines=3) @@ | ||
210 | case self::SUBJECT_LABEL_UNASSING: |
|
211 | $subject = $ownActivity ? $this->l10n->t('You have removed the tag {label} from card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has removed the tag {label} from card {card} in stack {stack} on board {board}'); |
|
212 | break; |
|
213 | case self::SUBJECT_CARD_USER_ASSIGN: |
|
214 | $subject = $ownActivity ? $this->l10n->t('You have assigned {assigneduser} to card {card} on board {board}') : $this->l10n->t('{user} has assigned {assigneduser} to card {card} on board {board}'); |
|
215 | break; |
|
216 | case self::SUBJECT_CARD_USER_UNASSIGN: |
|
217 | $subject = $ownActivity ? $this->l10n->t('You have unassigned {assigneduser} from card {card} on board {board}') : $this->l10n->t('{user} has unassigned {assigneduser} from card {card} on board {board}'); |
|
218 | break; |
|
@@ 216-218 (lines=3) @@ | ||
213 | case self::SUBJECT_CARD_USER_ASSIGN: |
|
214 | $subject = $ownActivity ? $this->l10n->t('You have assigned {assigneduser} to card {card} on board {board}') : $this->l10n->t('{user} has assigned {assigneduser} to card {card} on board {board}'); |
|
215 | break; |
|
216 | case self::SUBJECT_CARD_USER_UNASSIGN: |
|
217 | $subject = $ownActivity ? $this->l10n->t('You have unassigned {assigneduser} from card {card} on board {board}') : $this->l10n->t('{user} has unassigned {assigneduser} from card {card} on board {board}'); |
|
218 | break; |
|
219 | case self::SUBJECT_CARD_UPDATE_STACKID: |
|
220 | $subject = $ownActivity ? $this->l10n->t('You have moved the card {card} from stack {stackBefore} to {stack}') : $this->l10n->t('{user} has moved the card {card} from stack {stackBefore} to {stack}'); |
|
221 | break; |
|
@@ 219-221 (lines=3) @@ | ||
216 | case self::SUBJECT_CARD_USER_UNASSIGN: |
|
217 | $subject = $ownActivity ? $this->l10n->t('You have unassigned {assigneduser} from card {card} on board {board}') : $this->l10n->t('{user} has unassigned {assigneduser} from card {card} on board {board}'); |
|
218 | break; |
|
219 | case self::SUBJECT_CARD_UPDATE_STACKID: |
|
220 | $subject = $ownActivity ? $this->l10n->t('You have moved the card {card} from stack {stackBefore} to {stack}') : $this->l10n->t('{user} has moved the card {card} from stack {stackBefore} to {stack}'); |
|
221 | break; |
|
222 | case self::SUBJECT_ATTACHMENT_CREATE: |
|
223 | $subject = $ownActivity ? $this->l10n->t('You have added the attachment {attachment} to card {card}') : $this->l10n->t('{user} has added the attachment {attachment} to card {card}'); |
|
224 | break; |
|
@@ 222-224 (lines=3) @@ | ||
219 | case self::SUBJECT_CARD_UPDATE_STACKID: |
|
220 | $subject = $ownActivity ? $this->l10n->t('You have moved the card {card} from stack {stackBefore} to {stack}') : $this->l10n->t('{user} has moved the card {card} from stack {stackBefore} to {stack}'); |
|
221 | break; |
|
222 | case self::SUBJECT_ATTACHMENT_CREATE: |
|
223 | $subject = $ownActivity ? $this->l10n->t('You have added the attachment {attachment} to card {card}') : $this->l10n->t('{user} has added the attachment {attachment} to card {card}'); |
|
224 | break; |
|
225 | case self::SUBJECT_ATTACHMENT_UPDATE: |
|
226 | $subject = $ownActivity ? $this->l10n->t('You have updated the attachment {attachment} on card {card}') : $this->l10n->t('{user} has updated the attachment {attachment} on card {card}'); |
|
227 | break; |
|
@@ 225-227 (lines=3) @@ | ||
222 | case self::SUBJECT_ATTACHMENT_CREATE: |
|
223 | $subject = $ownActivity ? $this->l10n->t('You have added the attachment {attachment} to card {card}') : $this->l10n->t('{user} has added the attachment {attachment} to card {card}'); |
|
224 | break; |
|
225 | case self::SUBJECT_ATTACHMENT_UPDATE: |
|
226 | $subject = $ownActivity ? $this->l10n->t('You have updated the attachment {attachment} on card {card}') : $this->l10n->t('{user} has updated the attachment {attachment} on card {card}'); |
|
227 | break; |
|
228 | case self::SUBJECT_ATTACHMENT_DELETE: |
|
229 | $subject = $ownActivity ? $this->l10n->t('You have deleted the attachment {attachment} from card {card}') : $this->l10n->t('{user} has deleted the attachment {attachment} from card {card}'); |
|
230 | break; |
|
@@ 228-230 (lines=3) @@ | ||
225 | case self::SUBJECT_ATTACHMENT_UPDATE: |
|
226 | $subject = $ownActivity ? $this->l10n->t('You have updated the attachment {attachment} on card {card}') : $this->l10n->t('{user} has updated the attachment {attachment} on card {card}'); |
|
227 | break; |
|
228 | case self::SUBJECT_ATTACHMENT_DELETE: |
|
229 | $subject = $ownActivity ? $this->l10n->t('You have deleted the attachment {attachment} from card {card}') : $this->l10n->t('{user} has deleted the attachment {attachment} from card {card}'); |
|
230 | break; |
|
231 | case self::SUBJECT_ATTACHMENT_RESTORE: |
|
232 | $subject = $ownActivity ? $this->l10n->t('You have restored the attachment {attachment} to card {card}') : $this->l10n->t('{user} has restored the attachment {attachment} to card {card}'); |
|
233 | break; |
|
@@ 231-233 (lines=3) @@ | ||
228 | case self::SUBJECT_ATTACHMENT_DELETE: |
|
229 | $subject = $ownActivity ? $this->l10n->t('You have deleted the attachment {attachment} from card {card}') : $this->l10n->t('{user} has deleted the attachment {attachment} from card {card}'); |
|
230 | break; |
|
231 | case self::SUBJECT_ATTACHMENT_RESTORE: |
|
232 | $subject = $ownActivity ? $this->l10n->t('You have restored the attachment {attachment} to card {card}') : $this->l10n->t('{user} has restored the attachment {attachment} to card {card}'); |
|
233 | break; |
|
234 | case self::SUBJECT_CARD_COMMENT_CREATE: |
|
235 | $subject = $ownActivity ? $this->l10n->t('You have commented on card {card}') : $this->l10n->t('{user} has commented on card {card}'); |
|
236 | break; |
|
@@ 234-236 (lines=3) @@ | ||
231 | case self::SUBJECT_ATTACHMENT_RESTORE: |
|
232 | $subject = $ownActivity ? $this->l10n->t('You have restored the attachment {attachment} to card {card}') : $this->l10n->t('{user} has restored the attachment {attachment} to card {card}'); |
|
233 | break; |
|
234 | case self::SUBJECT_CARD_COMMENT_CREATE: |
|
235 | $subject = $ownActivity ? $this->l10n->t('You have commented on card {card}') : $this->l10n->t('{user} has commented on card {card}'); |
|
236 | break; |
|
237 | default: |
|
238 | break; |
|
239 | } |