08 2024
This commit is contained in:
parent
04d677d37a
commit
bfa3bb1df4
1191 changed files with 637397 additions and 10619 deletions
36
resources/views/vendor/translation/languages/create.blade.php
vendored
Normal file
36
resources/views/vendor/translation/languages/create.blade.php
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
@extends('translation::layout')
|
||||
|
||||
@section('body')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
<!-- Description -->
|
||||
<div class="card mb-4">
|
||||
<h5 class="card-header">
|
||||
{{ __('translation::translation.add_language') }}
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
|
||||
{!! Form::open(['url' => route('languages.store'), 'class' => 'form-horizontal', 'id'=>'']) !!}
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="name">{{ __('translation::translation.language_name') }}</label>
|
||||
{{ Form::text('name', '', array('class'=>'form-control', 'id'=>'name')) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="locale">{{ __('translation::translation.locale') }}</label>
|
||||
{{ Form::text('locale', '', array('class'=>'form-control', 'id'=>'locale')) }}
|
||||
</div>
|
||||
|
||||
<div class="text-left mt-0 mb-2">
|
||||
<button type="submit" class="btn btn-secondary">{{ __('save') }}</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
65
resources/views/vendor/translation/languages/index.blade.php
vendored
Normal file
65
resources/views/vendor/translation/languages/index.blade.php
vendored
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
@extends('translation::layout')
|
||||
|
||||
@section('body')
|
||||
@if(count($languages))
|
||||
|
||||
<div class="card">
|
||||
<h5 class="card-header">
|
||||
{{__('Sprache')}}
|
||||
</h5>
|
||||
<div class="card-datatable table-responsive">
|
||||
<table class="datatables-style table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
|
||||
<th>{{ __('translation::translation.language_name') }}</th>
|
||||
<th>{{ __('translation::translation.locale') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach($languages as $language => $name)
|
||||
<tr>
|
||||
<td>
|
||||
<a href="{{ route('languages.translations.index', $language) }}?group=single" class="btn icon-btn btn-sm btn-primary">
|
||||
<span class="fa fa-edit"></span>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
{{ $name }}
|
||||
</td>
|
||||
<td>
|
||||
<a href="{{ route('languages.translations.index', $language) }}?group=single">
|
||||
{{ $language }}
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="mt-4 ml-4">
|
||||
<a href="{{ route('languages.create') }}" class="btn btn-sm btn-primary">
|
||||
{{ __('translation::translation.add') }} {{ __('translation::translation.language') }}
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
$('.datatables-style').dataTable({
|
||||
"bLengthChange": false,
|
||||
"iDisplayLength": 50,
|
||||
"language": {
|
||||
"url": "/js/datatables-{{ \App::getLocale() }}.json"
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@endif
|
||||
|
||||
@endsection
|
||||
49
resources/views/vendor/translation/languages/translations/create.blade.php
vendored
Normal file
49
resources/views/vendor/translation/languages/translations/create.blade.php
vendored
Normal file
|
|
@ -0,0 +1,49 @@
|
|||
|
||||
|
||||
@extends('translation::layout')
|
||||
|
||||
@section('body')
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
|
||||
<!-- Description -->
|
||||
<div class="card mb-4">
|
||||
<h5 class="card-header">
|
||||
{{ __('translation::translation.add_translation') }}
|
||||
</h5>
|
||||
<div class="card-body">
|
||||
|
||||
{!! Form::open(['url' => route('languages.translations.store', $language), 'class' => 'form-horizontal', 'id'=>'']) !!}
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="group">{{ __('translation::translation.group_label') }}</label>
|
||||
{{ Form::text('group', '', array('placeholder'=> __('translation::translation.group_placeholder'),'class'=>'form-control', 'id'=>'group')) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="key">{{ __('translation::translation.key_label') }}</label>
|
||||
{{ Form::text('key', '', array('placeholder'=> __('translation::translation.key_placeholder'),'class'=>'form-control', 'id'=>'key')) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="value">{{ __('translation::translation.value_label') }}</label>
|
||||
{{ Form::text('value', '', array('placeholder'=> __('translation::translation.value_placeholder'), 'class'=>'form-control', 'id'=>'value')) }}
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="namespace">{{ __('translation::translation.namespace_label') }}</label>
|
||||
{{ Form::text('namespace', '', array('placeholder'=> __('translation::translation.namespace_placeholder'), 'class'=>'form-control', 'id'=>'namespace')) }}
|
||||
</div>
|
||||
|
||||
|
||||
<div class="text-left mt-0 mb-2">
|
||||
<button type="submit" class="btn btn-secondary">{{ __('save') }}</button>
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@endsection
|
||||
97
resources/views/vendor/translation/languages/translations/custom.blade.php
vendored
Normal file
97
resources/views/vendor/translation/languages/translations/custom.blade.php
vendored
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
@extends('translation::layout')
|
||||
|
||||
@section('body')
|
||||
|
||||
<div class="card">
|
||||
|
||||
<h5 class="card-header">
|
||||
{{ __('translation::translation.translations') }} {{ $model }}
|
||||
</h5>
|
||||
|
||||
<div class="card-body p-0">
|
||||
|
||||
{!! Form::open(['url' => route('admin_translate', ['model'=>$model]), 'class' => 'form-horizontal', 'method'=>'get']) !!}
|
||||
|
||||
<div class="form-row align-items-center pb-0 px-4 pt-1">
|
||||
<div class="col-12">
|
||||
<p><em>Hinweis: Platzhalter in den Inhalte die mit einem Doppelkunkt beginnen (wie :date :num :attribute etc), oder Platzhalter wie $0 oder {0} müssen erhalten bleiben und werden bei der Ausgabe dynamisch durch entsprechende Werte ersetzt.
|
||||
<br>Tags wie <b> <strong> <br> etc. formatieren den Text und sollten genau so in den Übersetzungen übernommen werden. </em></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-row align-items-center px-4 pb-2 pt-1">
|
||||
|
||||
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
||||
@include('translation::forms.select', ['name' => 'key', 'items' => $keys, 'submit' => true, 'selected' => Request::get('key'), 'optional' => false])
|
||||
</div>
|
||||
<div class="col-6 col-sm-4 col-md-2 col-lg-2 mb-1">
|
||||
@include('translation::forms.select', ['name' => 'language', 'items' => $languages, 'submit' => true, 'selected' => $select_language])
|
||||
</div>
|
||||
{{-- <div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
||||
@include('translation::forms.search', ['name' => 'filter', 'value' => Request::get('filter')])
|
||||
</div>
|
||||
--}}
|
||||
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<div class="card-datatable table-responsive pt-0">
|
||||
<table class="datatables-style table table-striped table-bordered" id="">
|
||||
<thead>
|
||||
<tr>
|
||||
<tr>
|
||||
<th style="width: 40%;">{{ $select_language }}</th>
|
||||
<th style="width: 40%;">{{ $source_language }}</th>
|
||||
<th style="width: 20%;">Titel</th>
|
||||
</tr>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($translations as $id => $value)
|
||||
<tr>
|
||||
<td>
|
||||
<translation-input
|
||||
initial-translation="{{ $value['trans'] }}"
|
||||
language="{{ $select_language }}"
|
||||
group="{{ $select_key }}"
|
||||
translation-key="{{ $id }}"
|
||||
route="admin/translate/update/{{ $model }}">
|
||||
</translation-input>
|
||||
</td>
|
||||
<td>{{ $value['source'] }}</td>
|
||||
<td><span style="display: inline-block;">{{ $value['master'] }}</span></td>
|
||||
</tr>
|
||||
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
$("textarea").each(function(){
|
||||
this.style.height = "5px";
|
||||
this.style.height = (this.scrollHeight) + "px";
|
||||
});
|
||||
$("textarea").focus(function(){
|
||||
this.style.height = "5px";
|
||||
this.style.height = (this.scrollHeight) + "px";
|
||||
});
|
||||
$("textarea").focusout(function(){
|
||||
this.style.height = "5px";
|
||||
this.style.height = (this.scrollHeight) + "px";
|
||||
});
|
||||
$("textarea").on('change keyup paste', function() {
|
||||
this.style.height = "5px";
|
||||
this.style.height = (this.scrollHeight) + "px";
|
||||
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@endsection
|
||||
122
resources/views/vendor/translation/languages/translations/index.blade.php
vendored
Normal file
122
resources/views/vendor/translation/languages/translations/index.blade.php
vendored
Normal file
|
|
@ -0,0 +1,122 @@
|
|||
@extends('translation::layout')
|
||||
|
||||
@section('body')
|
||||
|
||||
|
||||
|
||||
<div class="card">
|
||||
|
||||
<h5 class="card-header">
|
||||
{{ __('translation::translation.translations') }}
|
||||
</h5>
|
||||
|
||||
<div class="card-body p-0">
|
||||
|
||||
{!! Form::open(['url' => route('languages.translations.index', ['language' => $language]), 'class' => 'form-horizontal', 'method'=>'get']) !!}
|
||||
|
||||
<div class="form-row align-items-center pb-0 px-4 pt-1">
|
||||
<div class="col-12">
|
||||
<p><em>Hinweis: Platzhalter in den Inhalte die mit einem Doppelkunkt beginnen (wie :date :num :attribute etc), oder Platzhalter wie $0 oder {0} müssen erhalten bleiben und werden bei der Ausgabe dynamisch durch entsprechende Werte ersetzt.
|
||||
<br>Tags wie <b> <strong> <br> etc. formatieren den Text und sollten genau so in den Übersetzungen übernommen werden. </em></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="form-row align-items-center px-4 pb-2 pt-1">
|
||||
|
||||
|
||||
|
||||
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
||||
@include('translation::forms.select', ['name' => 'group', 'items' => $groups, 'submit' => true, 'selected' => Request::get('group'), 'optional' => false])
|
||||
</div>
|
||||
<div class="col-6 col-sm-4 col-md-2 col-lg-2 mb-1">
|
||||
@include('translation::forms.select', ['name' => 'language', 'items' => $languages, 'submit' => true, 'selected' => $language])
|
||||
</div>
|
||||
<div class="col-6 col-sm-4 col-md-4 col-lg-4 mb-1">
|
||||
@include('translation::forms.search', ['name' => 'filter', 'value' => Request::get('filter')])
|
||||
</div>
|
||||
<div class="col-6 col-sm-4 col-md-2 col-lg-2 mb-1">
|
||||
<a href="{{route('languages.translations.create', $language) }}" class="btn btn-sm btn-primary">
|
||||
{{ __('translation::translation.add') }} {{ __('translation::translation.translations') }}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{!! Form::close() !!}
|
||||
<style>
|
||||
|
||||
</style>
|
||||
<div class="card-datatable table-responsive pt-0">
|
||||
<table class="datatables-style table table-striped table-bordered" id="">
|
||||
<thead>
|
||||
<tr>
|
||||
<tr>
|
||||
|
||||
<th style="width: 40%;">{{ $language }}</th>
|
||||
<th style="width: 40%;">{{ config('app.locale') }}</th>
|
||||
|
||||
<th style="width: 10%;">{{ __('translation::translation.group_single') }}</th>
|
||||
<th style="width: 10%;">{{ __('translation::translation.key') }}</th>
|
||||
</tr>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach($translations as $type => $items)
|
||||
|
||||
@foreach($items as $group => $trans)
|
||||
|
||||
@foreach($trans as $key => $value)
|
||||
@if(isset($value[config('app.locale')]))
|
||||
<tr>
|
||||
<td>
|
||||
<translation-input
|
||||
initial-translation="{{ $value[$language] }}"
|
||||
language="{{ $language }}"
|
||||
group="{{ $group }}"
|
||||
translation-key="{{ $key }}"
|
||||
route="{{ config('translation.ui_url') }}">
|
||||
</translation-input>
|
||||
</td>
|
||||
<td>{{ $value[config('app.locale')] }}</td>
|
||||
|
||||
<td>{{ $group }}</td>
|
||||
<td><span style="display: inline-block; width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">{{ $key }}</span></td>
|
||||
</tr>
|
||||
@endif
|
||||
|
||||
@endforeach
|
||||
|
||||
@endforeach
|
||||
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
$( document ).ready(function() {
|
||||
|
||||
$("textarea").each(function(){
|
||||
this.style.height = "5px";
|
||||
this.style.height = (this.scrollHeight) + "px";
|
||||
});
|
||||
$("textarea").focus(function(){
|
||||
this.style.height = "5px";
|
||||
this.style.height = (this.scrollHeight) + "px";
|
||||
});
|
||||
$("textarea").focusout(function(){
|
||||
this.style.height = "5px";
|
||||
this.style.height = (this.scrollHeight) + "px";
|
||||
});
|
||||
$("textarea").on('change keyup paste', function() {
|
||||
this.style.height = "5px";
|
||||
this.style.height = (this.scrollHeight) + "px";
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@endsection
|
||||
Loading…
Add table
Add a link
Reference in a new issue