From 46d6783fc5d4216147f0210c1fa36b9de7a9ac8e Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Mon, 15 May 2023 09:01:30 -0700 Subject: [PATCH] adds translation to checkout notification --- app/Notifications/CheckoutAssetNotification.php | 2 +- resources/lang/en/mail.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/Notifications/CheckoutAssetNotification.php b/app/Notifications/CheckoutAssetNotification.php index 303fc08f1..6119c5824 100644 --- a/app/Notifications/CheckoutAssetNotification.php +++ b/app/Notifications/CheckoutAssetNotification.php @@ -107,7 +107,7 @@ class CheckoutAssetNotification extends Notification } return (new SlackMessage) - ->content(':arrow_up: :computer: Asset Checked Out') + ->content(':arrow_up: :computer: '.trans('mail.Asset_Checkout_Notification')) ->from($botname) ->attachment(function ($attachment) use ($item, $note, $admin, $fields) { $attachment->title(htmlspecialchars_decode($item->present()->name), $item->present()->viewUrl()) diff --git a/resources/lang/en/mail.php b/resources/lang/en/mail.php index 6bf36b4eb..7dd8d6181 100644 --- a/resources/lang/en/mail.php +++ b/resources/lang/en/mail.php @@ -75,6 +75,7 @@ return [ 'your_credentials' => 'Your Snipe-IT credentials', 'Accessory_Checkin_Notification' => 'Accessory checked in', 'Asset_Checkin_Notification' => 'Asset checked in', + 'Asset_Checkout_Notification' => 'Asset checked out', 'License_Checkin_Notification' => 'License checked in', 'Expected_Checkin_Report' => 'Expected asset checkin report', 'Expected_Checkin_Notification' => 'Reminder: :name checkin deadline approaching',