Added localized strings for account

This commit is contained in:
Wächtler, Yannick 2021-11-02 10:13:22 +01:00
parent eae9bf574f
commit b784e63aa8
10 changed files with 39 additions and 30 deletions

View file

@ -6,6 +6,7 @@
'accessory' => 'Accessory', 'accessory' => 'Accessory',
'accessory_report' => 'Accessory Report', 'accessory_report' => 'Accessory Report',
'action' => 'Action', 'action' => 'Action',
'actions' => 'Actions',
'activity_report' => 'Activity Report', 'activity_report' => 'Activity Report',
'address' => 'Address', 'address' => 'Address',
'admin' => 'Admin', 'admin' => 'Admin',
@ -62,6 +63,7 @@
'updated_at' => 'Updated at', 'updated_at' => 'Updated at',
'currency' => '$', // this is deprecated 'currency' => '$', // this is deprecated
'current' => 'Current', 'current' => 'Current',
'current_password' => 'Current Password',
'custom_report' => 'Custom Asset Report', 'custom_report' => 'Custom Asset Report',
'dashboard' => 'Dashboard', 'dashboard' => 'Dashboard',
'days' => 'days', 'days' => 'days',
@ -104,9 +106,10 @@
'file_type' => 'File Type', 'file_type' => 'File Type',
'file_uploads' => 'File Uploads', 'file_uploads' => 'File Uploads',
'generate' => 'Generate', 'generate' => 'Generate',
'github_markdown' => 'This field accepts <a href="https://help.github.com/articles/github-flavored-markdown/">Github flavored markdown</a>.', 'github_markdown' => 'This field accepts <a href="https://help.github.com/articles/github-flavored-markdown/">Github flavored markdown</a>.',
'groups' => 'Groups', 'groups' => 'Groups',
'gravatar_email' => 'Gravatar Email Address', 'gravatar_email' => 'Gravatar Email Address',
'gravatar_url' => '<a href="http://gravatar.com"><small>Change your avatar at Gravatar.com</small></a>.',
'history' => 'History', 'history' => 'History',
'history_for' => 'History for', 'history_for' => 'History for',
'id' => 'ID', 'id' => 'ID',
@ -122,6 +125,7 @@
'asset_maintenance_report' => 'Asset Maintenance Report', 'asset_maintenance_report' => 'Asset Maintenance Report',
'asset_maintenances' => 'Asset Maintenances', 'asset_maintenances' => 'Asset Maintenances',
'item' => 'Item', 'item' => 'Item',
'item_name' => 'Item Name',
'insufficient_permissions' => 'Insufficient permissions!', 'insufficient_permissions' => 'Insufficient permissions!',
'kits' => 'Predefined Kits', 'kits' => 'Predefined Kits',
'language' => 'Language', 'language' => 'Language',
@ -151,6 +155,7 @@
'months' => 'months', 'months' => 'months',
'moreinfo' => 'More Info', 'moreinfo' => 'More Info',
'name' => 'Name', 'name' => 'Name',
'new_password' => 'New Password',
'next' => 'Next', 'next' => 'Next',
'next_audit_date' => 'Next Audit Date', 'next_audit_date' => 'Next Audit Date',
'last_audit' => 'Last Audit', 'last_audit' => 'Last Audit',
@ -178,7 +183,10 @@
'reports' => 'Reports', 'reports' => 'Reports',
'restored' => 'restored', 'restored' => 'restored',
'restore' => 'Restore', 'restore' => 'Restore',
'requestable_models' => 'Requestable Models',
'requested' => 'Requested', 'requested' => 'Requested',
'requested_date' => 'Requested Date',
'requested_assets' => 'Requested Assets',
'request_canceled' => 'Request Canceled', 'request_canceled' => 'Request Canceled',
'save' => 'Save', 'save' => 'Save',
'select' => 'Select', 'select' => 'Select',
@ -231,6 +239,7 @@
'users' => 'Users', 'users' => 'Users',
'viewall' => 'View All', 'viewall' => 'View All',
'viewassets' => 'View Assigned Assets', 'viewassets' => 'View Assigned Assets',
'viewassetsfor' => 'View Assets for :name',
'website' => 'Website', 'website' => 'Website',
'welcome' => 'Welcome, :name', 'welcome' => 'Welcome, :name',
'years' => 'years', 'years' => 'years',

View file

@ -2,7 +2,7 @@
{{-- Page title --}} {{-- Page title --}}
@section('title') @section('title')
{{trans('general.accept', ['asset' => $item->present()->name()])}} {{ trans('general.accept', ['asset' => $item->present()->name()]) }}
@parent @parent
@stop @stop

View file

@ -2,7 +2,7 @@
{{-- Page title --}} {{-- Page title --}}
@section('title') @section('title')
Accept {{ $acceptance->checkoutable->present()->name() }} {{ trans('general.accept', array('asset' => $acceptance->checkoutable->present()->name())) }}
@parent @parent
@stop @stop
@ -47,14 +47,14 @@
<div class="radio"> <div class="radio">
<label> <label>
<input type="radio" name="asset_acceptance" id="accepted" value="accepted"> <input type="radio" name="asset_acceptance" id="accepted" value="accepted">
I accept {{ trans('general.i_accept') }}
</label> </label>
</div> </div>
<div class="radio"> <div class="radio">
<label> <label>
<input type="radio" name="asset_acceptance" id="declined" value="declined"> <input type="radio" name="asset_acceptance" id="declined" value="declined">
I decline {{ trans('general.i_decline') }}
</label> </label>
</div> </div>
@ -69,7 +69,7 @@
@if ($snipeSettings->require_accept_signature=='1') @if ($snipeSettings->require_accept_signature=='1')
<div class="col-md-12 col-sm-12 text-center" style="padding-top: 20px"> <div class="col-md-12 col-sm-12 text-center" style="padding-top: 20px">
<h3>Sign below to indicate that you agree to the terms of service:</h3> <h3>{{ trans('general.sign_tos') }}</h3>
<div id="signature-pad" class="m-signature-pad"> <div id="signature-pad" class="m-signature-pad">
<div class="m-signature-pad--body col-md-12 col-sm-12 col-lg-12 col-xs-12"> <div class="m-signature-pad--body col-md-12 col-sm-12 col-lg-12 col-xs-12">
@ -77,7 +77,7 @@
<input type="hidden" name="signature_output" id="signature_output"> <input type="hidden" name="signature_output" id="signature_output">
</div> </div>
<div class="col-md-12 col-sm-12 col-lg-12 col-xs-12 text-center"> <div class="col-md-12 col-sm-12 col-lg-12 col-xs-12 text-center">
<button type="button" class="btn btn-sm btn-default clear" data-action="clear" id="clear_button">Clear Signature</button> <button type="button" class="btn btn-sm btn-default clear" data-action="clear" id="clear_button">{{ trans('general.clear_signature') }}</button>
</div> </div>
</div> </div>
</div> <!-- .col-md-12.text-center--> </div> <!-- .col-md-12.text-center-->

View file

@ -2,6 +2,7 @@
{{-- Page title --}} {{-- Page title --}}
@section('title') @section('title')
//TODO: Debug page as it is not viewable in browser due to crash
Accept assets {{ $user->present()->fullName() }} Accept assets {{ $user->present()->fullName() }}
@parent @parent
@stop @stop
@ -34,8 +35,8 @@ Accept assets {{ $user->present()->fullName() }}
}'> }'>
<thead> <thead>
<tr> <tr>
<th>Name</th> <th>{{ trans('general.name')}}</th>
<th>Actions</th> <th>{{ trans('general.actions')}}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>

View file

@ -2,7 +2,7 @@
{{-- Page title --}} {{-- Page title --}}
@section('title') @section('title')
Personal API Keys {{ trans('account/api.personal_api_keys') }}
@parent @parent
@stop @stop
@ -24,18 +24,17 @@
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<div class="alert alert-warning"><i class="fas fa-exclamation-triangle faa-pulse animated"></i> <div class="alert alert-warning"><i class="fas fa-exclamation-triangle faa-pulse animated"></i>
When generating an API token, be sure to copy it down immediately as they {{ trans('account/api.api_key_warning') }}
will not be visible to you again. </div> </div>
<p>Your API base url is located at:<br> <p>{{ trans('account/api.api_base_url') }}<br>
<code>{{ url('/api/v1') }}/&lt;endpoint&gt;</code></p> <code>{{ url('/api/v1') }}{{!! trans('account/api.api_base_url_endpoint') !!}}</code></p>
<p>API tokens are set to expire in: <p>{{ trans('account/api.api_token_expiration_time') }}
<strong>{{ config('passport.expiration_years') }} years</strong>.</p> <strong>{{ config('passport.expiration_years') }} {{ trans('general.years') }} </strong>.</p>
<p>Please check the <a href="https://snipe-it.readme.io/reference" target="_blank">API reference</a> to <p>{{!! trans('account/api.api_reference') !!}}</p>
find specific API endpoints and additional API documentation.</p>
</div> </div>
</div> </div>

View file

@ -20,7 +20,7 @@
<!-- Old Password --> <!-- Old Password -->
<div class="form-group {{ $errors->has('current_password') ? ' has-error' : '' }}"> <div class="form-group {{ $errors->has('current_password') ? ' has-error' : '' }}">
<label for="current_password" class="col-md-3 control-label">Current Password <label for="current_password" class="col-md-3 control-label"> {{ trans('general.current_password') }} </label>
</label> </label>
<div class="col-md-5 required"> <div class="col-md-5 required">
<input class="form-control" type="password" name="current_password" id="current_password" {{ (config('app.lock_passwords') ? ' disabled' : '') }}> <input class="form-control" type="password" name="current_password" id="current_password" {{ (config('app.lock_passwords') ? ' disabled' : '') }}>
@ -32,7 +32,7 @@
</div> </div>
<div class="form-group {{ $errors->has('password') ? ' has-error' : '' }}"> <div class="form-group {{ $errors->has('password') ? ' has-error' : '' }}">
<label for="password" class="col-md-3 control-label">New Password</label> <label for="password" class="col-md-3 control-label">{{ trans('general.new_password') }}</label>
<div class="col-md-5 required"> <div class="col-md-5 required">
<input class="form-control" type="password" name="password" id="password" {{ (config('app.lock_passwords') ? ' disabled' : '') }}> <input class="form-control" type="password" name="password" id="password" {{ (config('app.lock_passwords') ? ' disabled' : '') }}>
{!! $errors->first('password', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!} {!! $errors->first('password', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
@ -44,7 +44,7 @@
<div class="form-group {{ $errors->has('password_confirmation') ? ' has-error' : '' }}"> <div class="form-group {{ $errors->has('password_confirmation') ? ' has-error' : '' }}">
<label for="password_confirmation" class="col-md-3 control-label">New Password</label> <label for="password_confirmation" class="col-md-3 control-label">{{ trans('general.new_password') }}</label>
<div class="col-md-5 required"> <div class="col-md-5 required">
<input class="form-control" type="password" name="password_confirmation" id="password_confirmation" {{ (config('app.lock_passwords') ? ' disabled' : '') }} aria-label="password_confirmation"> <input class="form-control" type="password" name="password_confirmation" id="password_confirmation" {{ (config('app.lock_passwords') ? ' disabled' : '') }} aria-label="password_confirmation">
{!! $errors->first('password_confirmation', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!} {!! $errors->first('password_confirmation', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}

View file

@ -97,7 +97,7 @@
{!! $errors->first('gravatar', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!} {!! $errors->first('gravatar', '<span class="alert-msg" aria-hidden="true"><i class="fas fa-times" aria-hidden="true"></i> :message</span>') !!}
<p> <p>
<img src="//secure.gravatar.com/avatar/{{ md5(strtolower(trim($user->gravatar))) }}" width="30" height="30" alt="{{ $user->present()->fullName() }} avatar image"> <img src="//secure.gravatar.com/avatar/{{ md5(strtolower(trim($user->gravatar))) }}" width="30" height="30" alt="{{ $user->present()->fullName() }} avatar image">
<a href="http://gravatar.com"><small>Change your avatar at Gravatar.com</small></a>. {{!! trans('general.gravatar_url') !!}}
</p> </p>
</div> </div>
</div> </div>

View file

@ -72,7 +72,7 @@
<div class="col-md-12"> <div class="col-md-12">
@if ($models->count() > 0) @if ($models->count() > 0)
<h2>Requestable Models</h4> <h2>{{ trans('general.requestable_models') }}</h4>
<table <table
name="requested-assets" name="requested-assets"
data-toolbar="#toolbar" data-toolbar="#toolbar"

View file

@ -2,7 +2,7 @@
{{-- Page title --}} {{-- Page title --}}
@section('title') @section('title')
Requested Assets {{ trans('general.requested_assets')}}
@stop @stop
{{-- Account page content --}} {{-- Account page content --}}
@ -32,13 +32,13 @@
}'> }'>
<thead> <thead>
<tr> <tr>
<th class="col-md-1" data-field="image" data-formatter="imageFormatter">Image</th> <th class="col-md-1" data-field="image" data-formatter="imageFormatter">{{ trans('general.image') }}</th>
<th class="col-md-2" data-field="name">Item Name</th> <th class="col-md-2" data-field="name">{{ trans('general.item_name') }}</th>
<th class="col-md-2" data-field="type">Type</th> <th class="col-md-2" data-field="type">{{ trans('general.type') }}</th>
<th class="col-md-2" data-field="qty">{{ trans('general.qty') }}</th> <th class="col-md-2" data-field="qty">{{ trans('general.qty') }}</th>
<th class="col-md-2" data-field="location">{{ trans('admin/hardware/table.location') }}</th> <th class="col-md-2" data-field="location">{{ trans('admin/hardware/table.location') }}</th>
<th class="col-md-2" data-field="expected_checkin" data-formatter="dateDisplayFormatter"> {{ trans('admin/hardware/form.expected_checkin') }}</th> <th class="col-md-2" data-field="expected_checkin" data-formatter="dateDisplayFormatter"> {{ trans('admin/hardware/form.expected_checkin') }}</th>
<th class="col-md-2" data-field="request_date" data-formatter="dateDisplayFormatter">Requested Date</th> <th class="col-md-2" data-field="request_date" data-formatter="dateDisplayFormatter"> {{ trans('general.requested_date') }}</th>
</tr> </tr>
</thead> </thead>
</table> </table>

View file

@ -2,7 +2,7 @@
{{-- Page title --}} {{-- Page title --}}
@section('title') @section('title')
View Assets for {{ $user->present()->fullName() }} {{ trans('general.viewassetsfor', array('name' => $user->fullName)) }}
@parent @parent
@stop @stop
@ -294,7 +294,7 @@ View Assets for {{ $user->present()->fullName() }}
@if ($user->id) @if ($user->id)
<div class="box-header with-border"> <div class="box-header with-border">
<div class="box-heading"> <div class="box-heading">
<h2 class="box-title"> History</h2> <h2 class="box-title"> {{ trans('general.history') }}</h2>
</div> </div>
</div><!-- /.box-header --> </div><!-- /.box-header -->
@endif @endif