Add administration localization options

This commit is contained in:
2020-09-01 12:43:39 +01:00
parent bf5d4058ad
commit c58b5b56d7
14 changed files with 334 additions and 162 deletions

View File

@@ -1,10 +1,10 @@
@extends('adminlte::page')
@section('title', 'Raspberry Network | Developer Options')
@section('title', config('app.name') . ' | ' . __('messages.devoptions'))
@section('content_header')
<h4>Administration / Developer Tools</h4>
<h4>{{__('messages.adm')}} / {{__('messages.devtools')}}</h4>
@stop
@@ -14,27 +14,27 @@
@section('content')
<x-modal id="confirmForceEventDispatch" modal-label="confirmForceEventDispatch" modal-title="Choose an application" include-close-button="true">
<x-modal id="confirmForceEventDispatch" modal-label="confirmForceEventDispatch" modal-title="{{__('messages.choose_app')}}" include-close-button="true">
<p>Please choose an application to force re-evaluation</p>
<p>{{__('messages.forceeval')}}</p>
<form method="POST" id="forceEval" action="{{route('devToolsForceVoteCount')}}">
@csrf
<select name="application" class="custom-select">
@if(!$applications->isEmpty())
@foreach($applications as $application)
<option value="{{$application->id}}">Application ID {{$application->id}} ({{$application->user->name}})</option>
<option value="{{$application->id}}">{{__('messages.appid')}} {{$application->id}} ({{$application->user->name}})</option>
@endforeach
@else
<option value="null" disabled>There are no valid applications</option>
<option value="null" disabled>{{__('messages.no_valid_app')}}</option>
@endif
</select>
</form>
<x-slot name="modalFooter">
<button type="button" class="btn btn-danger" onclick="document.getElementById('forceEval').submit()">Dispatch event now</button>
<button type="button" class="btn btn-danger" onclick="document.getElementById('forceEval').submit()">{{__('messages.dispatch_event')}}</button>
</x-slot>
</x-modal>
@@ -44,8 +44,8 @@
<div class="alert alert-warning">
<i class="fa fa-exclamation-triangle"></i> <b>Warning</b>
<p>Do not use these options if you don't know what you're doing, even if you have access to this page.</p>
<i class="fa fa-exclamation-triangle"></i> <b>{{__('messages.warn')}}</b>
<p>{{__('messages.devtools_warn')}}</p>
</div>
</div>
@@ -60,11 +60,11 @@
<x-slot name="cardHeader">
</x-slot>
<button type="button" class="btn btn-danger" onclick="$('#confirmForceEventDispatch').modal('show')">Override Vote Evaluation</button>
<button type="button" class="btn btn-warning ml-3">Artisan: Evaluate Votes Now</button>
<button type="button" class="btn btn-danger" onclick="$('#confirmForceEventDispatch').modal('show')">{{__('messages.override_votes')}}</button>
<button type="button" class="btn btn-warning ml-3">{{__('messages.artisan_evaluate')}}</button>
<x-slot name="cardFooter">
<p class="text-muted"> This panel may be also used to completely override the vote system in stalemate scenarios.</p>
<p class="text-muted"> .</p>
</x-slot>
</x-card>