From 63b30489dfa98a1455151b1c80bdff8a89839756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C3=A4chtler=2C=20Yannick?= Date: Tue, 2 Nov 2021 15:44:57 +0100 Subject: [PATCH] Added localized strings for notifications --- resources/lang/en/general.php | 5 +++++ .../notifications/markdown/asset-requested.blade.php | 4 ++-- .../markdown/report-expected-checkins.blade.php | 4 ++-- .../notifications/markdown/user-inventory.blade.php | 9 ++++----- 4 files changed, 13 insertions(+), 9 deletions(-) diff --git a/resources/lang/en/general.php b/resources/lang/en/general.php index 408ec9c169d3..a4df7e6f834b 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 1bf8eeaee5ca..56ceefb4a7a3 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 f2c92c448893..9c8a13e80edb 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 cc84542e6f2d..ec7bc598a663 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') }} @@ -18,7 +17,7 @@ @endif @if ($accessories->count() > 0) -## {{ $accessories->count() }} Accessories +## {{ $accessories->count() }} {{ trans('general.accessories') }}
{{ trans('mail.name') }} {{ trans('mail.asset_tag') }}
@@ -29,7 +28,7 @@ @endif @if ($licenses->count() > 0) -## {{ $licenses->count() }} Licenses +## {{ $licenses->count() }} {{ trans('general.licenses') }}
{{ trans('mail.name') }}