Skip to content

A free open source IT asset/license management system

Add translation

Marcus Moored062cc45df89
diff --git a/app/Mail/BulkAssetCheckoutMail.php b/app/Mail/BulkAssetCheckoutMail.php
index 11370f310e..32040c68be 100644
--- a/app/Mail/BulkAssetCheckoutMail.php
+++ b/app/Mail/BulkAssetCheckoutMail.php
@@ -147,18 +147,13 @@ class BulkAssetCheckoutMail extends Mailable
return [];
}
- if ($this->assets->count() > 1) {
- return [
- // todo: translate
- trans_choice('mail.items_checked_out_require_acceptance', $this->assets->count()),
- "**[✔ Click here to review the terms of use and accept the items]({$this->getAcceptanceUrl()})**",
- ];
- }
-
return [
- // todo: translate
trans_choice('mail.items_checked_out_require_acceptance', $this->assets->count()),
- "**[✔ Click here to review the terms of use and accept the item]({$this->getAcceptanceUrl()})**",
+ sprintf(
+ '**[✔ %s](%s)**',
+ trans_choice('mail.click_here_to_review_terms_and_accept_item', $this->assets->count()),
+ $this->getAcceptanceUrl(),
+ ),
];
}
}
diff --git a/resources/lang/en-US/mail.php b/resources/lang/en-US/mail.php
index 92cce47145..021e209119 100644
--- a/resources/lang/en-US/mail.php
+++ b/resources/lang/en-US/mail.php
@@ -86,6 +86,7 @@ return [
'password_reset' => 'Password Reset',
'read_the_terms' => 'Please read the terms of use below.',
'read_the_terms_and_click' => 'Please read the terms of use below, and click on the link at the bottom to confirm that you read and agree to the terms of use, and have received the asset.',
+ 'click_here_to_review_terms_and_accept_item' => 'Click here to review the terms of use and accept the item|Click here to review the terms of use and accept the items',
'requested' => 'Requested',
'reset_link' => 'Your Password Reset Link',
'reset_password' => 'Click here to reset your password:',