Added localized strings for notifications

This commit is contained in:
Wächtler, Yannick 2021-11-02 15:44:57 +01:00
parent 670b70c7e1
commit 63b30489df
4 changed files with 13 additions and 9 deletions

View file

@ -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.',
];

View file

@ -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 }} |

View file

@ -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

View file

@ -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>