added some translations to branding and general setrting

This commit is contained in:
Godfrey M 2025-01-28 11:56:10 -08:00
parent fd60ce1198
commit 0dfb71cfe5
4 changed files with 28 additions and 10 deletions

View file

@ -13,4 +13,8 @@ return [
'no_depreciations_warning' => '<strong>Warning: </strong> 'no_depreciations_warning' => '<strong>Warning: </strong>
You do not currently have any depreciations set up. You do not currently have any depreciations set up.
Please set up at least one depreciation to view the depreciation report.', Please set up at least one depreciation to view the depreciation report.',
'depreciation_method' => 'Depreciation Method',
'linear_depreciation' => 'Linear (Default)',
'half_1' => 'Half-year convention, always applied',
'half_2' => 'Half-year convention, applied with condition',
]; ];

View file

@ -132,6 +132,7 @@ return [
'login_user_agent' => 'User Agent', 'login_user_agent' => 'User Agent',
'login_help' => 'List of attempted logins', 'login_help' => 'List of attempted logins',
'login_note' => 'Login Note', 'login_note' => 'Login Note',
'login_note_placeholder' => "If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you.",
'login_note_help' => 'Optionally include a few sentences on your login screen, for example to assist people who have found a lost or stolen device. This field accepts <a href="https://help.github.com/articles/github-flavored-markdown/">Github flavored markdown</a>', 'login_note_help' => 'Optionally include a few sentences on your login screen, for example to assist people who have found a lost or stolen device. This field accepts <a href="https://help.github.com/articles/github-flavored-markdown/">Github flavored markdown</a>',
'login_remote_user_text' => 'Remote User login options', 'login_remote_user_text' => 'Remote User login options',
'login_remote_user_enabled_text' => 'Enable Login with Remote User Header', 'login_remote_user_enabled_text' => 'Enable Login with Remote User Header',
@ -341,6 +342,7 @@ return [
'setup_migration_create_user' => 'Next: Create User', 'setup_migration_create_user' => 'Next: Create User',
'ldap_settings_link' => 'LDAP Settings Page', 'ldap_settings_link' => 'LDAP Settings Page',
'slack_test' => 'Test <i class="fab fa-slack"></i> Integration', 'slack_test' => 'Test <i class="fab fa-slack"></i> Integration',
'status_label_name' => 'Status Label Name',
'label2_enable' => 'New Label Engine', 'label2_enable' => 'New Label Engine',
'label2_enable_help' => 'Switch to the new label engine. <b>Note: You will need to save this setting before setting others.</b>', 'label2_enable_help' => 'Switch to the new label engine. <b>Note: You will need to save this setting before setting others.</b>',
'label2_template' => 'Template', 'label2_template' => 'Template',
@ -374,6 +376,7 @@ return [
'database_driver' => 'Database Driver', 'database_driver' => 'Database Driver',
'bs_table_storage' => 'Table Storage', 'bs_table_storage' => 'Table Storage',
'timezone' => 'Timezone', 'timezone' => 'Timezone',
'test_mail' => 'Test Mail',
'profile_edit' => 'Edit Profile', 'profile_edit' => 'Edit Profile',
'profile_edit_help' => 'Allow users to edit their own profiles.', 'profile_edit_help' => 'Allow users to edit their own profiles.',
'default_avatar' => 'Upload custom default avatar', 'default_avatar' => 'Upload custom default avatar',
@ -383,6 +386,15 @@ return [
'due_checkin_days' => 'Due For Checkin Warning', 'due_checkin_days' => 'Due For Checkin Warning',
'due_checkin_days_help' => 'How many days before the expected checkin of an asset should it be listed in the "Due for checkin" page?', 'due_checkin_days_help' => 'How many days before the expected checkin of an asset should it be listed in the "Due for checkin" page?',
'no_groups' => 'No groups have been created yet. Visit <code>Admin Settings > Permission Groups</code> to add one.', 'no_groups' => 'No groups have been created yet. Visit <code>Admin Settings > Permission Groups</code> to add one.',
'text' => 'Text',
'logo_option_types' => [
'0' => trans('text'),
'1' => trans('logo'),
'2' => trans('logo'). ' + '. trans('text'),
],
/* Keywords for settings overview help */ /* Keywords for settings overview help */

View file

@ -59,7 +59,9 @@
</div> </div>
</div> </div>
@php
$optionTypes = trans('admin/settings/general.logo_option_types');
@endphp
<!-- Branding --> <!-- Branding -->
<div class="form-group {{ $errors->has('brand') ? 'error' : '' }}"> <div class="form-group {{ $errors->has('brand') ? 'error' : '' }}">
@ -67,7 +69,7 @@
{{ Form::label('brand', trans('admin/settings/general.web_brand')) }} {{ Form::label('brand', trans('admin/settings/general.web_brand')) }}
</div> </div>
<div class="col-md-9"> <div class="col-md-9">
{!! Form::select('brand', array('1'=>'Text','2'=>'Logo','3'=>'Logo + Text'), old('brand', $setting->brand), array('class' => 'form-control select2', 'style'=>'width: 150px ;')) !!} {!! Form::select('brand', array($optionTypes), old('brand', $setting->brand), ['class' => 'form-control select2', 'style' => 'width: 150px;']) !!}
{!! $errors->first('brand', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {!! $errors->first('brand', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
</div> </div>
</div> </div>

View file

@ -241,11 +241,11 @@
<div class="col-md-9"> <div class="col-md-9">
@if (config('app.lock_passwords')) @if (config('app.lock_passwords'))
<textarea class="form-control disabled" name="login_note" placeholder="If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you." rows="2" aria-label="login_note" readonly>{{ old('login_note', $setting->login_note) }}</textarea> <textarea class="form-control disabled" name="login_note" placeholder="{{trans('admin/settings/general.login_note_placeholder')}}" rows="2" aria-label="login_note" readonly>{{ old('login_note', $setting->login_note) }}</textarea>
{!! $errors->first('login_note', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {!! $errors->first('login_note', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
<p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p> <p class="text-warning"><i class="fas fa-lock"></i> {{ trans('general.feature_disabled') }}</p>
@else @else
<textarea class="form-control" name="login_note" aria-label="login_note" placeholder="If you do not have a login or have found a device belonging to this company, please call technical support at 888-555-1212. Thank you." rows="2">{{ old('login_note', $setting->login_note) }}</textarea> <textarea class="form-control" name="login_note" aria-label="login_note" placeholder="{{trans('admin/settings/general.login_note_placeholder')}}" rows="2">{{ old('login_note', $setting->login_note) }}</textarea>
{!! $errors->first('login_note', '<span class="alert-msg" aria-hidden="true">:message</span>') !!} {!! $errors->first('login_note', '<span class="alert-msg" aria-hidden="true">:message</span>') !!}
@endif @endif
<p class="help-block">{!! trans('admin/settings/general.login_note_help') !!}</p> <p class="help-block">{!! trans('admin/settings/general.login_note_help') !!}</p>
@ -255,7 +255,7 @@
<!-- Mail test --> <!-- Mail test -->
<div class="form-group"> <div class="form-group">
<div class="col-md-3"> <div class="col-md-3">
{{ Form::label('login_note', 'Test Mail') }} {{ Form::label('login_note', trans('admin/settings/general.test_mail')) }}
</div> </div>
<div class="col-md-9" id="mailtestrow"> <div class="col-md-9" id="mailtestrow">
<a class="btn btn-default btn-sm pull-left" id="mailtest" style="margin-right: 10px;"> <a class="btn btn-default btn-sm pull-left" id="mailtest" style="margin-right: 10px;">
@ -360,7 +360,7 @@
</div> </div>
<div class="col-md-9"> <div class="col-md-9">
{{ Form::select('dash_chart_type', array( {{ Form::select('dash_chart_type', array(
'name' => 'Status Label Name', 'name' => trans('admin/settings/general.status_label_name'),
'type' => 'Status Label Type'), old('dash_chart_type', $setting->dash_chart_type), ['class' =>'select2', 'style' => 'width: 80%']) }} 'type' => 'Status Label Type'), old('dash_chart_type', $setting->dash_chart_type), ['class' =>'select2', 'style' => 'width: 80%']) }}
</div> </div>
</div> </div>
@ -369,13 +369,13 @@
<!-- Depreciation method --> <!-- Depreciation method -->
<div class="form-group {{ $errors->has('depreciation_method') ? 'error' : '' }}"> <div class="form-group {{ $errors->has('depreciation_method') ? 'error' : '' }}">
<div class="col-md-3"> <div class="col-md-3">
{{ Form::label('depreciation_method', trans('Depreciation method')) }} {{ Form::label('depreciation_method', trans('admin/depreciations/general.depreciation_method')) }}
</div> </div>
<div class="col-md-9"> <div class="col-md-9">
{{ Form::select('depreciation_method', array( {{ Form::select('depreciation_method', array(
'default' => 'Linear (default)', 'default' => trans('admin/depreciations/general.linear_depreciation'),
'half_1' => 'Half-year convention, always applied', 'half_1' => trans('admin/depreciations/general.half_1'),
'half_2' => 'Half-year convention, applied with condition', 'half_2' => trans('admin/depreciations/general.half_2'),
), old('username_format', $setting->depreciation_method), ['class' =>'select2', 'style' => 'width: 80%']) }} ), old('username_format', $setting->depreciation_method), ['class' =>'select2', 'style' => 'width: 80%']) }}
</div> </div>
</div> </div>