Added localized strings for reports

This commit is contained in:
Wächtler, Yannick 2021-11-19 12:39:19 +01:00
parent 04fec144a0
commit 6917d59185
6 changed files with 28 additions and 20 deletions

View file

@ -10,4 +10,7 @@ return [
'number_of_months' => 'Number of Months',
'update' => 'Update Depreciation',
'depreciation_min' => 'Minimum Value after Depreciation',
'no_depreciations_warning' => '<strong>Warning: </strong>
You do not currently have any depreciations set up.
Please set up at least one depreciation to view the depreciation report.',
];

View file

@ -68,6 +68,7 @@
'currency' => '$', // this is deprecated
'current' => 'Current',
'current_password' => 'Current Password',
'customize_report' => 'Customize Report',
'custom_report' => 'Custom Asset Report',
'dashboard' => 'Dashboard',
'days' => 'days',
@ -205,9 +206,10 @@
'request_canceled' => 'Request Canceled',
'save' => 'Save',
'select' => 'Select',
'select_all' => 'Select All',
'search' => 'Search',
'select_category' => 'Select a Category',
'select_department' => 'Select a Department',
'select_department' => 'Select a Department',
'select_depreciation' => 'Select a Depreciation Type',
'select_location' => 'Select a Location',
'select_manufacturer' => 'Select a Manufacturer',
@ -290,9 +292,16 @@
'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',
'checked_out_to' => 'Checked out to',
'fields' => 'Fields',
'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.',
'changed' => 'Changed',
'to' => 'To',
'report_fields_info' => '<p>Select the fields you would like to include in your custom report, and click Generate. The file (custom-asset-report-YYYY-mm-dd.csv) will download automatically, and you can open it in Excel.</p>
<p>If you would like to export only certain assets, use the options below to fine-tune your results.</p>',
'range' => 'Range',
'bom_remark' => 'Add a BOM (byte-order mark) to this CSV',
];

View file

@ -6,5 +6,4 @@ return [
'action' => 'Action',
'by' => 'By',
'item' => 'Item',
];

View file

@ -50,9 +50,9 @@
<th class="col-sm-2" data-field="action_type">{{ trans('general.action') }}</th>
<th class="col-sm-1" data-field="type" data-formatter="itemTypeFormatter">{{ trans('general.type') }}</th>
<th class="col-sm-3" data-field="item" data-formatter="polymorphicItemFormatter">{{ trans('general.item') }}</th>
<th class="col-sm-2" data-field="target" data-formatter="polymorphicItemFormatter">To</th>
<th class="col-sm-2" data-field="target" data-formatter="polymorphicItemFormatter">{{ trans('general.to') }}</th>
<th class="col-sm-1" data-field="note">{{ trans('general.notes') }}</th>
<th class="col-sm-2" data-field="log_meta" data-visible="false" data-formatter="changeLogFormatter">Changed</th>
<th class="col-sm-2" data-field="log_meta" data-visible="false" data-formatter="changeLogFormatter">{{ trans('general.changed') }}</th>
</tr>
</thead>
</table>

View file

@ -24,7 +24,7 @@
<!-- Horizontal Form -->
<div class="box box-default">
<div class="box-header with-border">
<h2 class="box-title">Customize Report</h2>
<h2 class="box-title">{{ trans('general.customize_report') }}</h2>
</div><!-- /.box-header -->
<div class="box-body">
@ -34,7 +34,7 @@
<div class="checkbox col-md-12">
<label>
<input type="checkbox" class="all minimal" checked="checked">
Select All
{{ trans('general.select_all') }}
</label>
</div>
<div class="checkbox col-md-12">
@ -199,7 +199,7 @@
<!-- User fields -->
<div class="checkbox col-md-12">
<h2>Checked Out To Fields:</h4>
<h2>{{ trans('general.checked_out_to') }} {{ trans('general.fields') }}:</h2>
</div>
<div class="checkbox col-md-12">
<label>
@ -241,7 +241,7 @@
@if ($customfields->count() > 0)
<div class="checkbox col-md-12">
<h2>Custom Fields:</h4>
<h2>{{ trans('admin/custom_fields/general.custom_fields') }}</h>:</h4>
</div>
@foreach ($customfields as $customfield)
<div class="checkbox col-md-12">
@ -257,8 +257,7 @@
<div class="col-md-8">
<p>Select the fields you'd like to include in your custom report, and click Generate. The file (custom-asset-report-YYYY-mm-dd.csv) will download automatically, and you can open it in Excel.</p>
<p>If you'd like to export only certain assets, use the options below to fine-tune your results.</p>
{!! trans('general.report_fields_info') !!}
@include ('partials.forms.edit.company-select', ['translated_name' => trans('general.company'), 'fieldname' => 'by_company_id', 'hide_new' => 'true'])
@include ('partials.forms.edit.location-select', ['translated_name' => trans('general.location'), 'fieldname' => 'by_location_id', 'hide_new' => 'true'])
@ -288,7 +287,7 @@
<!-- Purchase Date -->
<div class="form-group purchase-range">
<label for="purchase_start" class="col-md-3 control-label">{{ trans('general.purchase_date') }} Range</label>
<label for="purchase_start" class="col-md-3 control-label">{{ trans('general.purchase_date') }} {{ trans('general.range') }}</label>
<div class="input-daterange input-group col-md-6" id="datepicker">
<input type="text" class="input-sm form-control" name="purchase_start" aria-label="purchase_start">
<span class="input-group-addon">to</span>
@ -298,7 +297,7 @@
<!-- Created Date -->
<div class="form-group purchase-range">
<label for="created_start" class="col-md-3 control-label">{{ trans('general.created_at') }} Range</label>
<label for="created_start" class="col-md-3 control-label">{{ trans('general.created_at') }} {{ trans('general.range') }}</label>
<div class="input-daterange input-group col-md-6" id="datepicker">
<input type="text" class="input-sm form-control" name="created_start" aria-label="created_start">
<span class="input-group-addon">to</span>
@ -339,7 +338,7 @@
<div class="col-md-9 col-md-offset-3">
<label>
{{ Form::checkbox('use_bom', '1') }}
Add a BOM (byte-order mark) to this CSV
{{ trans('general.bom_remark') }}
</label>
</div>

View file

@ -47,9 +47,7 @@
<div class="col-md-12">
<div class="alert alert-warning fade in">
<i class="fas fa-exclamation-triangle faa-pulse animated"></i>
<strong>Warning: </strong>
You do not currently have any depreciations set up.
Please set up at least one depreciation to view the depreciation report.
{!! trans('admin/depreciations/general.no_depreciations_warning') !!}
</div>
</div>
@endif