Skip to content

Commit 234a297

Browse files
committed
Translated page blocks
1 parent dd8749d commit 234a297

File tree

2 files changed

+55
-8
lines changed

2 files changed

+55
-8
lines changed

resources/lang/en/messages.php

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,49 @@
777777
'The backup was successful' => 'The backup was successful, you can now return to the Admin Panel or see all your backups.+',
778778

779779

780+
/*
781+
|--------------------------------------------------------------------------
782+
| Page Blocks
783+
|--------------------------------------------------------------------------
784+
|
785+
| Parts are stored in the database.
786+
| resources/views/studio/edit-link.blade.php
787+
|
788+
*/
789+
790+
# predefined
791+
'block.title.predefined' => 'Predefined Site+',
792+
'block.description.predefined' => 'Select from a list of predefined websites and have your link automatically styled using that sites brand colors and icon.+',
793+
794+
# link
795+
'block.title.link' => 'Custom Link+',
796+
'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.+',
797+
798+
# vcard
799+
'block.title.vcard' => 'Vcard+',
800+
'block.description.vcard' => 'Create or upload an electronic business card.+',
801+
802+
# email
803+
'block.title.email' => 'E-Mail address+',
804+
'block.description.email' => 'Add an email that opens a system dialog to compose a new email.+',
805+
806+
# telephone
807+
'block.title.telephone' => 'Telephone number+',
808+
'block.description.telephone' => 'Add a telephone number that opens a system dialog to initiate a phone call.+',
809+
810+
# heading
811+
'block.title.heading' => 'Heading+',
812+
'block.description.heading' => 'Use headings to organize your links and separate them into groups.+',
813+
814+
# spacer
815+
'block.title.spacer' => 'Spacer+',
816+
'block.description.spacer' => 'Add blank space to your list of links. You can choose how tall.+',
817+
818+
# text
819+
'block.title.text' => 'Text+',
820+
'block.description.text' => 'Add static text to your page that is not clickable.+',
821+
822+
780823
/*
781824
|--------------------------------------------------------------------------
782825
| Maintenance Page

resources/views/studio/edit-link.blade.php

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@
4141
</button> --}}
4242
{{-- <div class="dropdown-menu">
4343
@foreach ( $LinkTypes as $lt )
44-
<a data-typeid='{{$lt['id']}}' data-typename='{{$lt['title']}}' class="dropdown-item doSelectLinkType" href="#">
45-
<i class="{{$lt['icon']}}"></i> {{$lt['title']}}
44+
<a data-typeid='{{$lt['id']}}' data-typename='{{__('messages.title.'.$ltt)}}' class="dropdown-item doSelectLinkType" href="#">
45+
<i class="{{$lt['icon']}}"></i> {{__('messages.title.'.$ltt)}}
4646
</a>
4747
4848
@endforeach
@@ -108,7 +108,7 @@ function submitFormWithParam(paramValue) {
108108

109109
<!-- Modal -->
110110
<style>.modal-title{color:#000!important;}</style>
111-
<x-modal title="Select Block" id="SelectLinkType">
111+
<x-modal title="{{__('Select Block')}}" id="SelectLinkType">
112112

113113
<div class="d-flex flex-row flex-wrap p-3">
114114

@@ -120,21 +120,25 @@ function submitFormWithParam(paramValue) {
120120
@endphp
121121

122122
@foreach ($sorted as $lt)
123-
<a href="#" data-dismiss="modal" data-typeid="{{$lt['id']}}" data-typename="{{$lt['title']}}" class="hvr-grow m-2 w-100 d-block doSelectLinkType">
123+
@php
124+
$title = __('messages.block.title.'.$lt['typename']);
125+
$description = __('messages.block.description.'.$lt['typename']);
126+
@endphp
127+
<a href="#" data-dismiss="modal" data-typeid="{{$lt['id']}}" data-typename="{{$title}}" class="hvr-grow m-2 w-100 d-block doSelectLinkType">
124128
<div class="rounded mb-3 shadow-lg">
125129
<div class="row g-0">
126130
<div class="col-auto bg-light d-flex align-items-center justify-content-center p-3">
127131
<i class="{{$lt['icon']}} text-primary h1 mb-0"></i>
128132
</div>
129133
<div class="col">
130134
<div class="card-body">
131-
<h5 class="card-title text-dark mb-0">{{$lt['title']}}</h5>
132-
<p class="card-text text-muted">{{$lt['description']}}</p>
135+
<h5 class="card-title text-dark mb-0">{{$title}}</h5>
136+
<p class="card-text text-muted">{{$description}}</p>
133137
</div>
134138
</div>
135139
</div>
136-
</div>
137-
</a>
140+
</div>
141+
</a>
138142
@endforeach
139143

140144
</div>

0 commit comments

Comments
 (0)