Skip to content

Commit dffcb62

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents 8c668b7 + de3b169 commit dffcb62

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

app/Notifications/CheckinAssetNotification.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public function toSlack()
9393

9494

9595
return (new SlackMessage)
96-
->content(':arrow_down: :computer: '.trans('mail.Asset_Checkin_Notification'))
96+
->content(':arrow_down: :computer: '.trans('mail.Asset_Checkin_Notification', ['tag' => '']))
9797
->from($botname)
9898
->to($channel)
9999
->attachment(function ($attachment) use ($item, $note, $admin, $fields) {
@@ -112,21 +112,21 @@ public function toMicrosoftTeams()
112112
return MicrosoftTeamsMessage::create()
113113
->to($this->settings->webhook_endpoint)
114114
->type('success')
115-
->title(trans('mail.Asset_Checkin_Notification'))
115+
->title(trans('mail.Asset_Checkin_Notification', ['tag' => '']))
116116
->addStartGroupToSection('activityText')
117117
->fact(htmlspecialchars_decode($item->display_name), '', 'activityText')
118118
->fact(trans('mail.checked_into'), ($item->location) ? $item->location->name : '')
119-
->fact(trans('mail.Asset_Checkin_Notification') . " by ", $admin->display_name)
119+
->fact(trans('general.administrator'), $admin->display_name)
120120
->fact(trans('admin/hardware/form.status'), $item->assetstatus?->name)
121121
->fact(trans('mail.notes'), $note ?: '');
122122
}
123123

124124

125-
$message = trans('mail.Asset_Checkin_Notification');
125+
$message = trans('mail.Asset_Checkin_Notification', ['tag' => '']);
126126
$details = [
127127
trans('mail.asset') => htmlspecialchars_decode($item->display_name),
128128
trans('mail.checked_into') => ($item->location) ? $item->location->name : '',
129-
trans('mail.Asset_Checkin_Notification')." by " => $admin->display_name,
129+
trans('general.administrator') => $admin->display_name,
130130
trans('admin/hardware/form.status') => $item->assetstatus?->name,
131131
trans('mail.notes') => $note ?: '',
132132
];
@@ -144,7 +144,7 @@ public function toGoogleChat()
144144
->card(
145145
Card::create()
146146
->header(
147-
'<strong>'.trans('mail.Asset_Checkin_Notification').'</strong>' ?: '',
147+
'<strong>'.trans('mail.Asset_Checkin_Notification', ['tag' =>'']).'</strong>' ?: '',
148148
htmlspecialchars_decode($item->display_name) ?: '',
149149
)
150150
->section(

app/Notifications/CheckoutAssetNotification.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function toSlack() :SlackMessage
110110
}
111111

112112
return (new SlackMessage)
113-
->content(':arrow_up: :computer: '.trans('mail.Asset_Checkout_Notification'))
113+
->content(':arrow_up: :computer: '.trans('mail.Asset_Checkout_Notification', ['tag' => '']))
114114
->from($botname)
115115
->to($channel)
116116
->attachment(function ($attachment) use ($item, $note, $admin, $fields) {
@@ -131,19 +131,19 @@ public function toMicrosoftTeams()
131131
return MicrosoftTeamsMessage::create()
132132
->to($this->settings->webhook_endpoint)
133133
->type('success')
134-
->title(trans('mail.Asset_Checkout_Notification'))
134+
->title(trans('mail.Asset_Checkout_Notification', ['tag' => '']))
135135
->addStartGroupToSection('activityText')
136136
->fact(trans('mail.assigned_to'), $target->display_name)
137137
->fact(htmlspecialchars_decode($item->display_name), '', 'activityText')
138-
->fact(trans('mail.Asset_Checkout_Notification') . " by ", $admin->display_name)
138+
->fact(trans('general.administrator'), $admin->display_name)
139139
->fact(trans('mail.notes'), $note ?: '');
140140
}
141141

142-
$message = trans('mail.Asset_Checkout_Notification');
142+
$message = trans('mail.Asset_Checkout_Notification', ['tag' => '']);
143143
$details = [
144144
trans('mail.assigned_to') => $target->present()->name,
145145
trans('mail.asset') => htmlspecialchars_decode($item->display_name),
146-
trans('mail.Asset_Checkout_Notification'). ' by' => $admin->display_name,
146+
trans('general.administrator') => $admin->display_name,
147147
trans('mail.notes') => $note ?: '',
148148
];
149149
return array($message, $details);
@@ -159,7 +159,7 @@ public function toGoogleChat()
159159
->card(
160160
Card::create()
161161
->header(
162-
'<strong>'.trans('mail.Asset_Checkout_Notification').'</strong>' ?: '',
162+
'<strong>'.trans('mail.Asset_Checkout_Notification', ['tag' => '']).'</strong>' ?: '',
163163
htmlspecialchars_decode($item->display_name) ?: '',
164164
)
165165
->section(

resources/lang/en-US/mail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
'Accessory_Checkin_Notification' => 'Accessory checked in',
66
'Accessory_Checkout_Notification' => 'Accessory checked out',
7-
'Asset_Checkin_Notification' => 'Asset checked in: [:tag]',
8-
'Asset_Checkout_Notification' => 'Asset checked out: [:tag]',
7+
'Asset_Checkin_Notification' => 'Asset checked in: :tag',
8+
'Asset_Checkout_Notification' => 'Asset checked out: :tag',
99
'Confirm_Accessory_Checkin' => 'Accessory checkin confirmation',
1010
'Confirm_Asset_Checkin' => 'Asset checkin confirmation',
1111
'Confirm_component_checkin' => 'Component checkin confirmation',

0 commit comments

Comments
 (0)