Skip to content

Commit

Permalink
Added localized strings for notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
nuraeil committed Nov 2, 2021
1 parent 670b70c commit 63b3048
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
5 changes: 5 additions & 0 deletions resources/lang/en/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.',
];
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} |
Expand All @@ -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 }} |
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
@@ -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>
Expand All @@ -18,7 +17,7 @@
@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>
Expand All @@ -29,7 +28,7 @@
@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>
Expand Down

0 comments on commit 63b3048

Please sign in to comment.