|
@@ 286-294 (lines=9) @@
|
| 283 |
|
} |
| 284 |
|
return $notification; |
| 285 |
|
break; |
| 286 |
|
case 'transfer_request_actioned_source': |
| 287 |
|
$notification->setParsedSubject((string) $l->t('Transfer completed')); |
| 288 |
|
$notification->setParsedMessage( |
| 289 |
|
(string) $l->t( |
| 290 |
|
'"%1$s" accepted your transfer of "%2$s" and it was completed', |
| 291 |
|
$notification->getMessageParameters()) |
| 292 |
|
); |
| 293 |
|
return $notification; |
| 294 |
|
break; |
| 295 |
|
case 'transfer_request_actioned_destination': |
| 296 |
|
$notification->setParsedSubject((string) $l->t('Transfer completed')); |
| 297 |
|
$notification->setParsedMessage( |
|
@@ 295-303 (lines=9) @@
|
| 292 |
|
); |
| 293 |
|
return $notification; |
| 294 |
|
break; |
| 295 |
|
case 'transfer_request_actioned_destination': |
| 296 |
|
$notification->setParsedSubject((string) $l->t('Transfer completed')); |
| 297 |
|
$notification->setParsedMessage( |
| 298 |
|
(string) $l->t( |
| 299 |
|
'"%1$s" was transferred to you from "%2$s"', |
| 300 |
|
$notification->getMessageParameters()) |
| 301 |
|
); |
| 302 |
|
return $notification; |
| 303 |
|
break; |
| 304 |
|
case 'transfer_request_failed_destination': |
| 305 |
|
$notification->setParsedSubject((string) $l->t('Transfer failed')); |
| 306 |
|
$notification->setParsedMessage( |
|
@@ 304-312 (lines=9) @@
|
| 301 |
|
); |
| 302 |
|
return $notification; |
| 303 |
|
break; |
| 304 |
|
case 'transfer_request_failed_destination': |
| 305 |
|
$notification->setParsedSubject((string) $l->t('Transfer failed')); |
| 306 |
|
$notification->setParsedMessage( |
| 307 |
|
(string) $l->t( |
| 308 |
|
'The transfer of "%1$s" from "%2$s failed. Ask the sender to try again."', |
| 309 |
|
$notification->getMessageParameters()) |
| 310 |
|
); |
| 311 |
|
return $notification; |
| 312 |
|
break; |
| 313 |
|
case 'transfer_request_failed_source': |
| 314 |
|
$notification->setParsedSubject((string) $l->t('Transfer failed')); |
| 315 |
|
$notification->setParsedMessage( |
|
@@ 313-321 (lines=9) @@
|
| 310 |
|
); |
| 311 |
|
return $notification; |
| 312 |
|
break; |
| 313 |
|
case 'transfer_request_failed_source': |
| 314 |
|
$notification->setParsedSubject((string) $l->t('Transfer failed')); |
| 315 |
|
$notification->setParsedMessage( |
| 316 |
|
(string) $l->t( |
| 317 |
|
'The transfer of "%1$s" to "%2$s" failed with message: "%3$s"', |
| 318 |
|
$notification->getMessageParameters()) |
| 319 |
|
); |
| 320 |
|
return $notification; |
| 321 |
|
break; |
| 322 |
|
default: |
| 323 |
|
throw new \InvalidArgumentException('Not a notifcation that can be formatted by this class'); |
| 324 |
|
} |