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