Skip to content

A free open source IT asset/license management system

Added localized strings for notifications

Wächtler, Yannick63b30489dfa9
diff --git a/resources/lang/en/general.php b/resources/lang/en/general.php
index 408ec9c169..a4df7e6f83 100644
--- a/resources/lang/en/general.php
+++ b/resources/lang/en/general.php
@@ -287,4 +287,9 @@
'setup_create_admin' => 'Create Admin User',
'setup_done' => 'Finished!',
'bulk_edit_about_to' => 'You are about to edit the following: ',
+ 'checked_out_to' => 'Checked out to',
+ 'last_checkout' => 'Last Checkout',
+ 'due_to_checkin' => 'The following :count items are due to be checked in soon:',
+ 'expected_checkin' => 'Expected Checkin',
+ 'reminder_checked_out_items' => 'This is a reminder of the items currently checked out to you. If you feel this list is inaccurate (something is missing, or something appears here that you believe you never received), please email :reply_to_name at :reply_to_address.',
];
diff --git a/resources/views/notifications/markdown/asset-requested.blade.php b/resources/views/notifications/markdown/asset-requested.blade.php
index 1bf8eeaee5..56ceefb4a7 100644
--- a/resources/views/notifications/markdown/asset-requested.blade.php
+++ b/resources/views/notifications/markdown/asset-requested.blade.php
@@ -25,7 +25,7 @@
| **{{ trans('general.status') }}** | {{ $item->assetstatus->name }}
@endif
@if ($item->assignedTo)
-| **Checked out to** | {!! $item->assignedTo->present()->nameUrl() !!} ({{ $item->present()->statusMeta }})
+| **{{ trans('general.checked_out_to') }}** | {!! $item->assignedTo->present()->nameUrl() !!} ({{ $item->present()->statusMeta }})
@endif
@if (isset($item->manufacturer))
| **{{ trans('general.manufacturer') }}** | {{ $item->manufacturer->name }} |
@@ -40,7 +40,7 @@
| **{{ trans('mail.serial') }}** | {{ $item->serial }} |
@endif
@if ((isset($last_checkout)) && ($last_checkout!=''))
-| **Last Checkout** | {{ $last_checkout }} |
+| **{{ trans('general.last_checkout') }}** | {{ $last_checkout }} |
@endif
@if ((isset($expected_checkin)) && ($expected_checkin!=''))
| **{{ trans('mail.expecting_checkin_date') }}** | {{ $expected_checkin }} |
diff --git a/resources/views/notifications/markdown/report-expected-checkins.blade.php b/resources/views/notifications/markdown/report-expected-checkins.blade.php
index f2c92c4488..9c8a13e80e 100644
--- a/resources/views/notifications/markdown/report-expected-checkins.blade.php
+++ b/resources/views/notifications/markdown/report-expected-checkins.blade.php
@@ -1,10 +1,10 @@
@component('mail::message')
# {{ trans('mail.hello') }},
-The following {{ $assets->count() }} items are due to be checked in soon:
+{{ trans('general.due_to_checkin', array('count' => $assets->count())) }}
@component('mail::table')
-| Asset | Checked Out to | Expected Checkin |
+| {{ trans('general.assets') }} | {{ trans('general.checked_out_to') }} | {{ trans('general.expected_checkin') }} |
| ------------- | ------------- | ------------- |
@foreach ($assets as $asset)
@php
diff --git a/resources/views/notifications/markdown/user-inventory.blade.php b/resources/views/notifications/markdown/user-inventory.blade.php
index cc84542e6f..ec7bc598a6 100644
--- a/resources/views/notifications/markdown/user-inventory.blade.php
+++ b/resources/views/notifications/markdown/user-inventory.blade.php
@@ -1,13 +1,12 @@
@component('mail::message')
-This is a reminder of the items currently checked out to you. If you feel this list is inaccurate (something is missing, or something appears here that you believe you never received), please email {{ config('mail.reply_to.name') }} at {{ config('mail.reply_to.address') }}.
-
+{{ trans('general.reminder_checked_out_items', array('reply_to_name' => config('mail.reply_to.name'), 'reply_to_address' => config('mail.reply_to.address')))}}
@component('mail::table')
@if ($assets->count() > 0)
-## {{ $assets->count() }} Assets
+## {{ $assets->count() }} {{ trans('general.assets') }}
<table width="100%">
<tr><th align="left">{{ trans('mail.name') }} </th><th align="left">{{ trans('mail.asset_tag') }}</th></tr>
@@ -18,7 +17,7 @@ This is a reminder of the items currently checked out to you. If you feel this l
@endif
@if ($accessories->count() > 0)
-## {{ $accessories->count() }} Accessories
+## {{ $accessories->count() }} {{ trans('general.accessories') }}
<table width="100%">
<tr><th align="left">{{ trans('mail.name') }} </th></tr>
@@ -29,7 +28,7 @@ This is a reminder of the items currently checked out to you. If you feel this l
@endif
@if ($licenses->count() > 0)
-## {{ $licenses->count() }} Licenses
+## {{ $licenses->count() }} {{ trans('general.licenses') }}
<table width="100%">
<tr><th align="left"{{ trans('mail.name') }} </th></tr>