A free open source IT asset/license management system
Added localized strings for hardware
Wächtler, Yannickc16ade2d87d3
diff --git a/resources/lang/en/admin/hardware/form.php b/resources/lang/en/admin/hardware/form.phpindex 86a40a5fa2..0c1a3167be 100644--- a/resources/lang/en/admin/hardware/form.php+++ b/resources/lang/en/admin/hardware/form.php@@ -40,4 +40,10 @@ return ['warranty' => 'Warranty','warranty_expires' => 'Warranty Expires','years' => 'years',+ 'asset_location' => 'Update Asset Location',+ 'asset_location_update_default_current' => 'Update default location AND actual location',+ 'asset_location_update_default' => 'Update only default location',+ 'asset_not_deployable' => 'That asset status is not deployable. This asset cannot be checked out.',+ 'asset_deployable' => 'That status is deployable. This asset can be checked out.',+ 'processing_spinner' => 'Processing...',];diff --git a/resources/lang/en/admin/hardware/general.php b/resources/lang/en/admin/hardware/general.phpindex 80a2c14e50..655696956f 100644--- a/resources/lang/en/admin/hardware/general.php+++ b/resources/lang/en/admin/hardware/general.php@@ -19,4 +19,23 @@ return ['pending' => 'Pending','undeployable' => 'Undeployable','view' => 'View Asset',+ 'csv_error' => 'You have an error in your CSV file:',+ 'import_text' => '+ <p>+ Upload a CSV that contains asset history. The assets and users MUST already exist in the system, or they will be skipped. Matching assets for history import happens against the asset tag. We will try to find a matching user based on the user\'s name you provide, and the criteria you select below. If you do not select any criteria below, it will simply try to match on the username format you configured in the Admin > General Settings.+ </p>++ <p>Fields included in the CSV must match the headers: <strong>Asset Tag, Name, Checkout Date, Checkin Date</strong>. Any additional fields will be ignored. </p>++ <p>Checkin Date: blank or future checkin dates will checkout items to associated user. Excluding the Checkin Date column will create a checkin date with todays date.</p>+ ',+ 'csv_import_match_f-l' => 'Try to match users by firstname.lastname (jane.smith) format',+ 'csv_import_match_initial_last' => 'Try to match users by first initial last name (jsmith) format',+ 'csv_import_match_first' => 'Try to match users by first name (jane) format',+ 'csv_import_match_email' => 'Try to match users by email as username',+ 'csv_import_match_username' => 'Try to match users by username',+ 'error_messages' => 'Error messages:',+ 'success_messages' => 'Success messages:',+ 'alert_details' => 'Please see below for details.',+ 'custom_export' => 'Custom Export'];diff --git a/resources/lang/en/admin/hardware/table.php b/resources/lang/en/admin/hardware/table.phpindex 828990b6e4..6166ba8045 100644--- a/resources/lang/en/admin/hardware/table.php+++ b/resources/lang/en/admin/hardware/table.php@@ -19,8 +19,12 @@ return ['serial' => 'Serial','status' => 'Status','title' => 'Asset ',- 'image' => 'Device Image',+ 'image' => 'Device Image','days_without_acceptance' => 'Days Without Acceptance','monthly_depreciation' => 'Monthly Depreciation',-+ 'assigned_to' => 'Assigned To',+ 'requesting_user' => 'Requesting User',+ 'requested_date' => 'Requested Date',+ 'changed' => 'Changed',+ 'icon' => 'Icon',];diff --git a/resources/lang/en/button.php b/resources/lang/en/button.phpindex 1be2a483a3..b39d0c0545 100644--- a/resources/lang/en/button.php+++ b/resources/lang/en/button.php@@ -17,4 +17,6 @@ return ['generate_labels' => '{1} Generate Label|[2,*] Generate Labels','send_password_link' => 'Send Password Reset Link','go' => 'Go',+ 'bulk_actions' => 'Bulk Actions',+ 'add_maintenance' => 'Add Maintenance',];diff --git a/resources/lang/en/general.php b/resources/lang/en/general.phpindex d3aff38869..d5d24afafa 100644--- a/resources/lang/en/general.php+++ b/resources/lang/en/general.php@@ -88,6 +88,7 @@'details' => 'Details','download' => 'Download','download_all' => 'Download All',+ 'edit' => 'Edit','editprofile' => 'Edit Your Profile','eol' => 'EOL','email_domain' => 'Email Domain',@@ -110,6 +111,7 @@'file_type' => 'File Type','file_uploads' => 'File Uploads','generate' => 'Generate',+ 'generate_labels' => 'Generate Labels','github_markdown' => 'This field accepts <a href="https://help.github.com/articles/github-flavored-markdown/">Github flavored markdown</a>.','groups' => 'Groups','gravatar_email' => 'Gravatar Email Address',@@ -213,6 +215,7 @@'sign_in' => 'Sign in','signature' => 'Signature','skin' => 'Skin',+ 'slack_msg_note' => 'A slack message will be sent','slack_test_msg' => 'Oh hai! Looks like your Slack integration with Snipe-IT is working!','some_features_disabled' => 'DEMO MODE: Some features are disabled for this installation.','site_name' => 'Site Name',@@ -265,4 +268,5 @@'view_all' => 'view all','hide_deleted' => 'Hide Deleted','email' => 'Email',+ 'do_not_change' => 'Do Not Change',];diff --git a/resources/views/hardware/audit.blade.php b/resources/views/hardware/audit.blade.phpindex ed395ec128..3ab2fbfc96 100644--- a/resources/views/hardware/audit.blade.php+++ b/resources/views/hardware/audit.blade.php@@ -57,7 +57,7 @@<div class="form-group"><div class="col-sm-offset-3 col-md-9"><label>- <input type="checkbox" value="1" name="update_location" class="minimal" {{ Request::old('update_location') == '1' ? ' checked="checked"' : '' }}> Update asset location+ <input type="checkbox" value="1" name="update_location" class="minimal" {{ Request::old('update_location') == '1' ? ' checked="checked"' : '' }}> {{ trans('admin/hardware/form.asset_location') }}</label>@include ('partials.more-info', ['helpText' => trans('help.audit_help'), 'helpPosition' => 'right'])diff --git a/resources/views/hardware/bulk-delete.blade.php b/resources/views/hardware/bulk-delete.blade.phpindex ed36296605..df19c9005f 100644--- a/resources/views/hardware/bulk-delete.blade.php+++ b/resources/views/hardware/bulk-delete.blade.php@@ -29,10 +29,10 @@<thead><tr><td></td>- <td>ID</td>- <td>Name</td>- <td>Location</td>- <td>Assigned To</td>+ <td>{{ trans('admin/hardware/table.id') }}</td>+ <td>{{ trans('admin/hardware/table.name') }}</td>+ <td>{{ trans('admin/hardware/table.location')}}</td>+ <td>{{ trans('admin/hardware/table.assigned_to') }}</td></tr></thead><tbody>@@ -59,7 +59,7 @@<div class="box-footer text-right"><a class="btn btn-link" href="{{ URL::previous() }}" method="post" enctype="multipart/form-data">{{ trans('button.cancel') }}</a>- <button type="submit" class="btn btn-success" id="submit-button"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('general.delete') }}</button>+ <button type="submit" class="btn btn-success" id="submit-button"><i class="fas fa-check icon-white" aria-hidden="true"></i> {{ trans('button.delete') }}</button></div><!-- /.box-footer --></div><!-- /.box --></form>diff --git a/resources/views/hardware/bulk.blade.php b/resources/views/hardware/bulk.blade.phpindex ae84e9008a..b073a3b74c 100755--- a/resources/views/hardware/bulk.blade.php+++ b/resources/views/hardware/bulk.blade.php@@ -75,12 +75,12 @@<label for="update_real_loc">{{ Form::radio('update_real_loc', '1', old('update_real_loc'), ['class'=>'minimal', 'aria-label'=>'update_real_loc']) }}- Update default location AND actual location+ {{ trans('admin/hardware/form.asset_location_update_default_current') }}</label><br><label for="update_default_loc">{{ Form::radio('update_real_loc', '0', old('update_real_loc'), ['class'=>'minimal', 'aria-label'=>'update_default_loc']) }}- Update only default location+ {{ trans('admin/hardware/form.asset_location_update_default') }}</label></div>@@ -137,13 +137,13 @@</div><div class="col-md-7"><label class="radio">- <input type="radio" class="minimal" name="requestable" value="1"> Yes+ <input type="radio" class="minimal" name="requestable" value="1"> {{ trans('general.yes')}}</label><label class="radio">- <input type="radio" class="minimal" name="requestable" value="0"> No+ <input type="radio" class="minimal" name="requestable" value="0"> {{ trans('general.no')}}</label><label class="radio">- <input type="radio" class="minimal" name="requestable" value=""> Do Not Change+ <input type="radio" class="minimal" name="requestable" value=""> {{ trans('general.do_not_change')}}</label></div></div>diff --git a/resources/views/hardware/checkout.blade.php b/resources/views/hardware/checkout.blade.phpindex 8608fd6273..9841e134ee 100755--- a/resources/views/hardware/checkout.blade.php+++ b/resources/views/hardware/checkout.blade.php@@ -124,7 +124,7 @@@if ($snipeSettings->slack_endpoint!='')<i class="fab fa-slack" aria-hidden="true"></i>- A slack message will be sent+ {{ trans('general.slack_msg_note')}}@endif</div></div>diff --git a/resources/views/hardware/edit.blade.php b/resources/views/hardware/edit.blade.phpindex 9f24460ef4..20e93f0677 100755--- a/resources/views/hardware/edit.blade.php+++ b/resources/views/hardware/edit.blade.php@@ -181,7 +181,7 @@$("#selected_status_status").removeClass('text-danger');$("#selected_status_status").removeClass('text-warning');$("#selected_status_status").addClass('text-success');- $("#selected_status_status").html('<i class="fas fa-check"></i> That status is deployable. This asset can be checked out.');+ $("#selected_status_status").html('<i class="fas fa-check"></i> {{ trans('admin/hardware/form.asset_deployable')}}');} else {@@ -189,7 +189,7 @@$("#selected_status_status").removeClass('text-danger');$("#selected_status_status").removeClass('text-success');$("#selected_status_status").addClass('text-warning');- $("#selected_status_status").html('<i class="fas fa-exclamation-triangle"></i> That asset status is not deployable. This asset cannot be checked out. ');+ $("#selected_status_status").html('<i class="fas fa-exclamation-triangle"></i> {{ trans('admin/hardware/form.asset_not_deployable')}} ');}}});diff --git a/resources/views/hardware/history.blade.php b/resources/views/hardware/history.blade.phpindex 9a8bcdda49..349dc8da38 100644--- a/resources/views/hardware/history.blade.php+++ b/resources/views/hardware/history.blade.php@@ -2,7 +2,7 @@{{-- Page title --}}@section('title')- Import History+ {{ trans('general.import-history') }}@parent@stop@@ -22,8 +22,8 @@<div class="box box-default"><div class="alert alert-danger"><i class="fas fa-exclamation-triangle faa-pulse animated"></i>- <strong>{{ count($status['error']) }} Error Messagess: </strong>- Please see below for errors.+ <strong>{{ count($status['error']) }} {{ trans('admin/hardware/general.error_messages') }}</strong> </strong>+ {{ trans('admin/hardware/general.alert_details') }}</div></div></div>@@ -35,8 +35,8 @@<div class="box box-default"><div class="alert alert-success"><i class="fas fa-check faa-pulse animated"></i>- <strong>{{ count($status['success']) }} Success Messages: </strong>- Please see below for details.+ <strong>{{ count($status['success']) }} {{ trans('admin/hardware/general.success_messages') }} </strong>+ {{ trans('admin/hardware/general.alert_details') }}</div></div></div>@@ -55,18 +55,12 @@@if (Session::get('message'))<p class="alert-danger">- You have an error in your CSV file:<br />+ {{ trans('admin/hardware/general.csv_error') }}<br />{{ Session::get('message') }}</p>@endif- <p>- Upload a CSV that contains asset history. The assets and users MUST already exist in the system, or they will be skipped. Matching assets for history import happens against the asset tag. We will try to find a matching user based on the user's name you provide, and the criteria you select below. If you do not select any criteria below, it will simply try to match on the username format you configured in the Admin > General Settings.- </p>-- <p>Fields included in the CSV must match the headers: <strong>Asset Tag, Name, Checkout Date, Checkin Date</strong>. Any additional fields will be ignored. </p>-- <p>Checkin Date: blank or future checkin dates will checkout items to associated user. Excluding the Checkin Date column will create a checkin date with todays date.</p>+ {!! trans('admin/hardware/general.import_text') !!}<div class="form-group"><label for="first_name" class="col-sm-3 control-label">{{ trans('admin/users/general.usercsv') }}</label>@@ -86,7 +80,7 @@<div class="col-sm-2"></div><div class="col-sm-10">- {{ Form::checkbox('match_firstnamelastname', '1', Request::old('match_firstnamelastname')) }} Try to match users by firstname.lastname (jane.smith) format+ {{ Form::checkbox('match_firstnamelastname', '1', Request::old('match_firstnamelastname')) }} {{ trans('admin/hardware/general.csv_import_match_f-l') }}</div></div>@@ -95,7 +89,7 @@<div class="col-sm-2"></div><div class="col-sm-10">- {{ Form::checkbox('match_flastname', '1', Request::old('match_flastname')) }} Try to match users by first initial last name (jsmith) format+ {{ Form::checkbox('match_flastname', '1', Request::old('match_flastname')) }} {{ trans('admin/hardware/general.csv_import_match_initial_last') }}</div></div>@@ -104,7 +98,7 @@<div class="col-sm-2"></div><div class="col-sm-10">- {{ Form::checkbox('match_firstname', '1', Request::old('match_firstname')) }} Try to match users by first name (jane) format+ {{ Form::checkbox('match_firstname', '1', Request::old('match_firstname')) }} {{ trans('admin/hardware/general.csv_import_match_first') }}</div></div>@@ -113,7 +107,7 @@<div class="col-sm-2"></div><div class="col-sm-10">- {{ Form::checkbox('match_email', '1', Request::old('match_email')) }} Try to match users by email as username+ {{ Form::checkbox('match_email', '1', Request::old('match_email')) }} {{ trans('admin/hardware/general.csv_import_match_email') }}</div></div>@@ -122,7 +116,7 @@<div class="col-sm-2"></div><div class="col-sm-10">- {{ Form::checkbox('match_username', '1', Request::old('match_username')) }} Try to match users by username+ {{ Form::checkbox('match_username', '1', Request::old('match_username')) }} {{ trans('admin/hardware/general.csv_import_match_username') }}</div></div>@@ -158,7 +152,7 @@<div class="col-md-12"><div class="box box-default"><div class="box-header with-border">- <h2 class="box-title"> {{ count($status['error']) }} Error Messages </h2>+ <h2 class="box-title"> {{ count($status['error']) }} {{ trans('admin/hardware/general.error_messages') }} </h2></div><div class="box-body"><div style="height : 400px; overflow : auto;">@@ -185,7 +179,7 @@<div class="col-md-12"><div class="box box-default"><div class="box-header with-border">- <h2 class="box-title"> {{ count($status['success']) }} Success Messages </h2>+ <h2 class="box-title"> {{ count($status['success']) }} {{ trans('admin/hardware/general.success_messages') }} </h2></div><div class="box-body"><div style="height : 400px; overflow : auto;">diff --git a/resources/views/hardware/index.blade.php b/resources/views/hardware/index.blade.phpindex 267b68a56c..d4bd6fc88a 100755--- a/resources/views/hardware/index.blade.php+++ b/resources/views/hardware/index.blade.php@@ -43,7 +43,7 @@@section('header_right')<a href="{{ route('reports/custom') }}" style="margin-right: 5px;" class="btn btn-default">- Custom Export</a>+ {{ trans('admin/hardware/general.custom_export') }}</a>@can('create', \App\Models\Asset::class)<a href="{{ route('hardware.create') }}" class="btn btn-primary pull-right"></i> {{ trans('general.create') }}</a>@endcan@@ -73,14 +73,14 @@'id' => 'bulkForm']) }}- <label for="bulk_actions"><span class="sr-only">Bulk Actions</span></label>+ <label for="bulk_actions"><span class="sr-only">{{ trans('button.bulk_actions') }}</span></label><select name="bulk_actions" class="form-control select2" aria-label="bulk_actions"><option value="edit">{{ trans('button.edit') }}</option><option value="delete">{{ trans('button.delete') }}</option><option value="labels">{{ trans_choice('button.generate_labels', 2) }}</option></select>- <button class="btn btn-primary" id="bulkEdit" disabled>Go</button>+ <button class="btn btn-primary" id="bulkEdit" disabled>{{ trans('button.go') }}</button>{{ Form::close() }}</div>diff --git a/resources/views/hardware/quickscan.blade.php b/resources/views/hardware/quickscan.blade.phpindex 2b81d858f3..5b2e09b947 100644--- a/resources/views/hardware/quickscan.blade.php+++ b/resources/views/hardware/quickscan.blade.php@@ -51,7 +51,7 @@<div class="form-group"><div class="col-sm-offset-3 col-md-9"><label>- <input type="checkbox" value="1" name="update_location" class="minimal" {{ Request::old('update_location') == '1' ? ' checked="checked"' : '' }}> Update asset location+ <input type="checkbox" value="1" name="update_location" class="minimal" {{ Request::old('update_location') == '1' ? ' checked="checked"' : '' }}> {{ trans('admin/hardware/form.asset_location') }}</label> <a href="#" class="text-dark-gray" tabindex="0" role="button" data-toggle="popover" data-trigger="focus" title="<i class='far fa-life-ring'></i> More Info" data-html="true" data-content="Checking this box will edit the asset record to reflect this new location. Leaving it unchecked will simply note the location in the audit log.<br><br>Note that is this asset is checked out, it will not change the location of the person, asset or location it is checked out to."><i class="far fa-life-ring"></i></a></div></div>@@ -112,7 +112,7 @@</tr><tr id="audit-loader" style="display: none;"><td colspan="3">- <i class="fas fa-spinner spin" aria-hidden="true"></i> Processing...+ <i class="fas fa-spinner spin" aria-hidden="true"></i> {{ trans('admin/hardware/form.processing_spinner') }}</td></tr></thead>diff --git a/resources/views/hardware/requested.blade.php b/resources/views/hardware/requested.blade.phpindex f86675663d..901356e69c 100644--- a/resources/views/hardware/requested.blade.php+++ b/resources/views/hardware/requested.blade.php@@ -49,8 +49,8 @@<th class="col-md-2">Item Name</th><th class="col-md-2" data-sortable="true">{{ trans('admin/hardware/table.location') }}</th><th class="col-md-2" data-sortable="true">{{ trans('admin/hardware/form.expected_checkin') }}</th>- <th class="col-md-3" data-sortable="true">Requesting User</th>- <th class="col-md-2">Requested Date</th>+ <th class="col-md-3" data-sortable="true">{{ trans('admin/hardware/form.requesting_user') }}</th>+ <th class="col-md-2">{{ trans('admin/hardware/form.requested_date') }}</th><th class="col-md-1"></th><th class="col-md-1"></th></tr>diff --git a/resources/views/hardware/view.blade.php b/resources/views/hardware/view.blade.phpindex 63ef534087..79e8301d76 100755--- a/resources/views/hardware/view.blade.php+++ b/resources/views/hardware/view.blade.php@@ -972,13 +972,13 @@'class' => 'form-inline','id' => 'bulkForm']) }}<div id="toolbar">- <label for="bulk_actions"><span class="sr-only">Bulk Actions</span></label>+ <label for="bulk_actions"><span class="sr-only">{{ trans('general.bulk_actions')}}</span></label><select name="bulk_actions" class="form-control select2" style="width: 150px;" aria-label="bulk_actions">- <option value="edit">Edit</option>- <option value="delete">Delete</option>- <option value="labels">Generate Labels</option>+ <option value="edit">{{ trans('general.edit') }}</option>+ <option value="delete">{{ trans('general.delete')}}</option>+ <option value="labels">{{ trans('general.generate_labels') }}</option></select>- <button class="btn btn-primary" id="bulkEdit" disabled>Go</button>+ <button class="btn btn-primary" id="bulkEdit" disabled>{{ trans('button.go') }}</button></div><!-- checked out assets table -->@@ -1028,7 +1028,7 @@<div class="col-md-12">@can('update', \App\Models\Asset::class)<div id="maintenance-toolbar">- <a href="{{ route('maintenances.create', ['asset_id' => $asset->id]) }}" class="btn btn-primary">Add Maintenance</a>+ <a href="{{ route('maintenances.create', ['asset_id' => $asset->id]) }}" class="btn btn-primary">{{ trans('button.add_maintenance') }}</a></div>@endcan@@ -1083,7 +1083,7 @@data-cookie="true"><thead><tr>- <th data-visible="true" style="width: 40px;" class="hidden-xs">Icon</th>+ <th data-visible="true" style="width: 40px;" class="hidden-xs">{{ trans('admin/hardware/table.icon') }}</th><th class="col-sm-2" data-visible="true" data-field="created_at" data-formatter="dateDisplayFormatter">{{ trans('general.date') }}</th><th class="col-sm-1" data-visible="true" data-field="admin" data-formatter="usersLinkObjFormatter">{{ trans('general.admin') }}</th><th class="col-sm-1" data-visible="true" data-field="action_type">{{ trans('general.action') }}</th>@@ -1094,7 +1094,7 @@<th class="col-md-3" data-field="signature_file" data-visible="false" data-formatter="imageFormatter">{{ trans('general.signature') }}</th>@endif<th class="col-md-3" data-visible="false" data-field="file" data-visible="false" data-formatter="fileUploadFormatter">{{ trans('general.download') }}</th>- <th class="col-sm-2" data-field="log_meta" data-visible="true" data-formatter="changeLogFormatter">Changed</th>+ <th class="col-sm-2" data-field="log_meta" data-visible="true" data-formatter="changeLogFormatter">{{ trans('admin/hardware/table.changed')}}</th></tr></thead></table>