Translated page blocks

This commit is contained in:
Julian Prieber 2023-06-16 20:06:37 +02:00
parent dd8749d321
commit 234a29722b
2 changed files with 55 additions and 8 deletions

View File

@ -777,6 +777,49 @@ return [
'The backup was successful' => 'The backup was successful, you can now return to the Admin Panel or see all your backups.+',
/*
|--------------------------------------------------------------------------
| Page Blocks
|--------------------------------------------------------------------------
|
| Parts are stored in the database.
| resources/views/studio/edit-link.blade.php
|
*/
# predefined
'block.title.predefined' => 'Predefined Site+',
'block.description.predefined' => 'Select from a list of predefined websites and have your link automatically styled using that sites brand colors and icon.+',
# link
'block.title.link' => 'Custom Link+',
'block.description.link' => 'Create a Custom Link that goes to any website. Customize the button styling and icon, or use the favicon from the website as the button icon.+',
# vcard
'block.title.vcard' => 'Vcard+',
'block.description.vcard' => 'Create or upload an electronic business card.+',
# email
'block.title.email' => 'E-Mail address+',
'block.description.email' => 'Add an email that opens a system dialog to compose a new email.+',
# telephone
'block.title.telephone' => 'Telephone number+',
'block.description.telephone' => 'Add a telephone number that opens a system dialog to initiate a phone call.+',
# heading
'block.title.heading' => 'Heading+',
'block.description.heading' => 'Use headings to organize your links and separate them into groups.+',
# spacer
'block.title.spacer' => 'Spacer+',
'block.description.spacer' => 'Add blank space to your list of links. You can choose how tall.+',
# text
'block.title.text' => 'Text+',
'block.description.text' => 'Add static text to your page that is not clickable.+',
/*
|--------------------------------------------------------------------------
| Maintenance Page

View File

@ -41,8 +41,8 @@
</button> --}}
{{-- <div class="dropdown-menu">
@foreach ( $LinkTypes as $lt )
<a data-typeid='{{$lt['id']}}' data-typename='{{$lt['title']}}' class="dropdown-item doSelectLinkType" href="#">
<i class="{{$lt['icon']}}"></i> {{$lt['title']}}
<a data-typeid='{{$lt['id']}}' data-typename='{{__('messages.title.'.$ltt)}}' class="dropdown-item doSelectLinkType" href="#">
<i class="{{$lt['icon']}}"></i> {{__('messages.title.'.$ltt)}}
</a>
@endforeach
@ -108,7 +108,7 @@
<!-- Modal -->
<style>.modal-title{color:#000!important;}</style>
<x-modal title="Select Block" id="SelectLinkType">
<x-modal title="{{__('Select Block')}}" id="SelectLinkType">
<div class="d-flex flex-row flex-wrap p-3">
@ -120,7 +120,11 @@
@endphp
@foreach ($sorted as $lt)
<a href="#" data-dismiss="modal" data-typeid="{{$lt['id']}}" data-typename="{{$lt['title']}}" class="hvr-grow m-2 w-100 d-block doSelectLinkType">
@php
$title = __('messages.block.title.'.$lt['typename']);
$description = __('messages.block.description.'.$lt['typename']);
@endphp
<a href="#" data-dismiss="modal" data-typeid="{{$lt['id']}}" data-typename="{{$title}}" class="hvr-grow m-2 w-100 d-block doSelectLinkType">
<div class="rounded mb-3 shadow-lg">
<div class="row g-0">
<div class="col-auto bg-light d-flex align-items-center justify-content-center p-3">
@ -128,13 +132,13 @@
</div>
<div class="col">
<div class="card-body">
<h5 class="card-title text-dark mb-0">{{$lt['title']}}</h5>
<p class="card-text text-muted">{{$lt['description']}}</p>
<h5 class="card-title text-dark mb-0">{{$title}}</h5>
<p class="card-text text-muted">{{$description}}</p>
</div>
</div>
</div>
</div>
</a>
</div>
</a>
@endforeach
</div>