Skip to content

Commit

Permalink
Added localized strings for models
Browse files Browse the repository at this point in the history
  • Loading branch information
nuraeil committed Nov 2, 2021
1 parent c0891e6 commit 670b70c
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
2 changes: 2 additions & 0 deletions resources/lang/en/admin/hardware/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
'model_deleted' => 'This Assets model has been deleted. You must restore the model before you can restore the Asset.',
'requestable' => 'Requestable',
'requested' => 'Requested',
'not_requestable' => 'Not Requestable',
'requestable_status_warning' => 'Do not change requestable status',
'restore' => 'Restore Asset',
'pending' => 'Pending',
'undeployable' => 'Undeployable',
Expand Down
1 change: 1 addition & 0 deletions resources/lang/en/general.php
Original file line number Diff line number Diff line change
Expand Up @@ -286,4 +286,5 @@
'setup_create_database' => 'Create Database Tables',
'setup_create_admin' => 'Create Admin User',
'setup_done' => 'Finished!',
'bulk_edit_about_to' => 'You are about to edit the following: ',
];
6 changes: 3 additions & 3 deletions resources/views/models/bulk-edit.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

<div class="box box-default">
<div class="box-header with-border">
<div class="box-title"><i class="fas fa-exclamation-triangle"></i> You are about to edit the following: </div>
<div class="box-title"><i class="fas fa-exclamation-triangle"></i>{{ trans('general.bulk_edit_about_to') }}</div>
</div>
<div class="box-body">

Expand Down Expand Up @@ -79,9 +79,9 @@

<div class="checkbox">
<label for="requestable">
{{ Form::radio('requestable', '', true, ['aria-label'=>'requestable']) }} Do not change requestable status<br>
{{ Form::radio('requestable', '', true, ['aria-label'=>'requestable']) }} {{ trans('admin/hardware/general.requestable_status_warning')}}<br>
{{ Form::radio('requestable', '1', old('requestable'), ['aria-label'=>'requestable']) }} {{ trans('admin/hardware/general.requestable')}} <br>
{{ Form::radio('requestable', '0', old('requestable'), ['aria-label'=>'requestable']) }} Not requestable
{{ Form::radio('requestable', '0', old('requestable'), ['aria-label'=>'requestable']) }} {{ trans('admin/hardware/general.not_requestable')}}

</label>
</div>
Expand Down
6 changes: 3 additions & 3 deletions resources/views/models/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,10 @@

@if (Request::get('status')!='deleted')
<div id="toolbar">
<label for="bulk_actions" class="sr-only">Bulk Actions</label>
<label for="bulk_actions" class="sr-only">{{ trans('general.bulk_actions') }}</label>
<select id="bulk_actions" name="bulk_actions" class="form-control select2" aria-label="bulk_actions" style="width: 300px;">
<option value="edit">Bulk Edit</option>
<option value="delete">Bulk Delete</option>
<option value="edit">{{ trans('general.bulk_edit') }}</option>
<option value="delete">{{ trans('general.bulk_delete') }}</option>
</select>
<button class="btn btn-primary" id="bulkEdit" disabled>Go</button>
</div>
Expand Down
10 changes: 5 additions & 5 deletions resources/views/models/view.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@
'id' => 'bulkForm']) }}
<div id="toolbar">
<select name="bulk_actions" class="form-control select2">
<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>

<table
Expand Down Expand Up @@ -90,7 +90,7 @@ class="table table-striped snipe-table"
<div class="box box-default">
<div class="box-header with-border">
<div class="box-heading">
<h2 class="box-title"> More Info:</h2>
<h2 class="box-title"> {{ trans('general.moreinfo') }}:</h2>
</div>
</div><!-- /.box-header -->
<div class="box-body">
Expand Down

0 comments on commit 670b70c

Please sign in to comment.