Skip to content

Commit 5403f67

Browse files
committed
Translated all page items
1 parent 2244fe8 commit 5403f67

File tree

10 files changed

+132
-60
lines changed

10 files changed

+132
-60
lines changed

resources/lang/en/messages.php

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,78 @@
817817
'block.description.text' => 'Add static text to your page that is not clickable.+',
818818

819819

820+
/*
821+
|--------------------------------------------------------------------------
822+
| Page Items
823+
|--------------------------------------------------------------------------
824+
|
825+
| resources/views/components/pageitems/
826+
|
827+
*/
828+
829+
'Default Email' => 'Default Email+',
830+
'Custom Title' => 'Custom Title+',
831+
'Leave blank for default title' => 'Leave blank for default title+',
832+
'E-Mail address' => 'E-Mail address+',
833+
'Enter your E-Mail' => 'Enter your E-Mail+',
834+
835+
'Heading Text:' => 'Heading Text:+',
836+
837+
'Title' => 'Title+',
838+
'URL' => 'URL+',
839+
'Show website icon on button' => 'Show website icon on button+',
840+
841+
'Select a predefined site' => 'Select a predefined site+',
842+
'Custom Title' => 'Custom Title+',
843+
'Leave blank for default title' => 'Leave blank for default title+',
844+
'Enter the link URL' => 'Enter the link URL+',
845+
846+
'Spacing height' => 'Spacing height+',
847+
848+
'Phone' => 'Phone+',
849+
'Custom Title' => 'Custom Title+',
850+
'Leave blank for default title' => 'Leave blank for default title+',
851+
'Telephone number' => 'Telephone number+',
852+
'Enter your telephone number' => 'Enter your telephone number+',
853+
854+
'Text to display' => 'Text to display+',
855+
856+
'Vcard' => 'Vcard+',
857+
'Custom Title' => 'Custom Title+',
858+
'Leave blank for default title' => 'Leave blank for default title+',
859+
'Name' => 'Name+',
860+
'Prefix' => 'Prefix+',
861+
'First Name' => 'First Name+',
862+
'Middle Name' => 'Middle Name+',
863+
'Last Name' => 'Last Name+',
864+
'Suffix' => 'Suffix+',
865+
'Work' => 'Work+',
866+
'Organization' => 'Organization+',
867+
'Title' => 'Title+',
868+
'Role' => 'Role+',
869+
'Work URL' => 'Work URL+',
870+
'Emails' => 'Emails+',
871+
'Email' => 'Email+',
872+
'Enter your personal email' => 'Enter your personal email+',
873+
'Work Email' => 'Work Email+',
874+
'Enter your work email' => 'Enter your work email+',
875+
'Phones' => 'Phones+',
876+
'Home Phone' => 'Home Phone+',
877+
'Work Phone' => 'Work Phone+',
878+
'Cell Phone' => 'Cell Phone+',
879+
'Home Address' => 'Home Address+',
880+
'Label' => 'Label+',
881+
'Street' => 'Street+',
882+
'City' => 'City+',
883+
'State/Province' => 'State/Province+',
884+
'Zip/Postal Code' => 'Zip/Postal Code+',
885+
'Country' => 'Country+',
886+
'Work Address' => 'Work Address+',
887+
888+
'Title' => 'Title+',
889+
'URL to the video' => 'URL to the video+',
890+
891+
820892
/*
821893
|--------------------------------------------------------------------------
822894
| Maintenance Page
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php use App\Models\Button; $button = Button::find($button_id); if(isset($button->name)){$buttonName = $button->name;}else{$buttonName = 0;} ?>
22

3-
<select style="display:none" name="button" class="form-control"><option class="button button-default email" value="default email">Default Email</option></select>
3+
<select style="display:none" name="button" class="form-control"><option class="button button-default email" value="default email">{{__('messages.Default Email')}}</option></select>
44

5-
<label for='title' class='form-label'>Custom Title</label>
5+
<label for='title' class='form-label'>{{__('messages.Custom Title')}}</label>
66
<input type='text' name='title' value='{{$link_title}}' class='form-control' />
7-
<span class='small text-muted'>Leave blank for default title</span><br>
7+
<span class='small text-muted'>{{__('messages.Leave blank for default title')}}</span><br>
88

9-
<label for='link' class='form-label'>E-Mail address</label>
9+
<label for='link' class='form-label'>{{__('messages.E-Mail address')}}</label>
1010
<input type='email' name='link' value='{{str_replace("mailto:", "", $link_url)}}' class='form-control' required />
11-
<span class='small text-muted'>Enter your E-Mail</span>
11+
<span class='small text-muted'>{{__('messages.Enter your E-Mail')}}</span>
1212

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<label for='title' class='form-label'>Heading Text:</label>
1+
<label for='title' class='form-label'>{{__('messages.Heading Text:')}}</label>
22
<input type='text' name='title' value='{{$link_title}}' class='form-control' />
33

44

resources/views/components/pageitems/link-form.blade.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
<label for='title' class='form-label'>Title</label>
1+
<label for='title' class='form-label'>{{__('messages.Title')}}</label>
22
<input type='text' name='title' value='{{$link_title}}' class='form-control' required />
33

4-
<label for='title' class='form-label'>URL</label>
4+
<label for='title' class='form-label'>{{__('messages.URL')}}</label>
55
<input type='url' name='link' value='{{$link_url}}' class='form-control' required />
66

77
<div class="custom-control custom-checkbox m-2">
88
<input type="checkbox" class="custom-control-input" value='1' {{((isset($params->GetSiteIcon) ? boolval($params->GetSiteIcon) : false) ? 'checked': '') }} name='GetSiteIcon' id="GetSiteIcon" @if($button_id == 2)checked @endif>
99

10-
<label class="custom-control-label" for="GetSiteIcon">Show website icon on button</label>
10+
<label class="custom-control-label" for="GetSiteIcon">{{__('messages.Show website icon on button')}}</label>
1111

1212

1313

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<label for='button' class='form-label'>Select a predefined site</label>
1+
<label for='button' class='form-label'>{{__('messages.Select a predefined site')}}</label>
22
<?php use App\Models\Button; $button = Button::find($button_id); if(isset($button->name)){$buttonName = $button->name;}else{$buttonName = 0;} ?>
33

44
<select name='button' class='form-control'>
@@ -10,11 +10,11 @@
1010
@endforeach
1111
</select>
1212

13-
<label for='title' class='form-label'>Custom Title</label>
13+
<label for='title' class='form-label'>{{__('messages.Custom Title')}}</label>
1414
<input type='text' name='title' value='{{$link_title}}' class='form-control' />
15-
<span class='small text-muted'>Leave blank for default title</span><br>
15+
<span class='small text-muted'>{{__('messages.Leave blank for default title')}}</span><br>
1616

17-
<label for='link' class='form-label'>URL</label>
17+
<label for='link' class='form-label'>{{__('messages.URL')}}</label>
1818
<input type='url' name='link' value='{{$link_url}}' class='form-control' required />
19-
<span class='small text-muted'>Enter the link URL</span>
19+
<span class='small text-muted'>{{__('messages.Enter the link URL')}}</span>
2020

resources/views/components/pageitems/spacer-form.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<label for='title' class='form-label'>Spacing height</label>
1+
<label for='title' class='form-label'>{{__('messages.Spacing height')}}</label>
22
{{-- <input type='number' name='height' value="{{$params->height ?? ''}}" class='form-control w-25' /> --}}
33

44
<input type="range" class="custom-range" id="height" name='height' value={{$params->height??5}} oninput="this.nextElementSibling.value = this.value"><output class='font-weight-bold'>{{$params->height??5}}</output>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?php use App\Models\Button; $button = Button::find($button_id); if(isset($button->name)){$buttonName = $button->name;}else{$buttonName = 0;} ?>
22

3-
<select style="display:none" name="button" class="form-control"><option class="button button-default email" value="phone">Phone</option></select>
3+
<select style="display:none" name="button" class="form-control"><option class="button button-default email" value="phone">{{__('messages.Phone')}}</option></select>
44

5-
<label for='title' class='form-label'>Custom Title</label>
5+
<label for='title' class='form-label'>{{__('messages.Custom Title')}}</label>
66
<input type='text' name='title' value='{{$link_title}}' class='form-control' />
7-
<span class='small text-muted'>Leave blank for default title</span><br>
7+
<span class='small text-muted'>{{__('messages.Leave blank for default title')}}</span><br>
88

9-
<label for='link' class='form-label'>Telephone number</label>
9+
<label for='link' class='form-label'>{{__('messages.Telephone number')}}</label>
1010
<input type='tel' name='link' value='{{str_replace("tel:", "", $link_url)}}' class='form-control' required />
11-
<span class='small text-muted'>Enter your telephone number</span>
11+
<span class='small text-muted'>{{__('messages.Enter your telephone number')}}</span>
1212

resources/views/components/pageitems/text-form.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<label for='text' class='form-label'>Text to display</label>
1+
<label for='text' class='form-label'>{{__('messages.Text to display')}}</label>
22
<textarea class="form-control @if(env('ALLOW_USER_HTML') === true) ckeditor @endif" name="text" rows="6">{{ $link_title ?? '' }}</textarea>
33
@if(env('ALLOW_USER_HTML') === true)
44
<script src="{{ asset('assets/external-dependencies/ckeditor.js') }}"></script>
Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php use JeroenDesloovere\VCard\VCard; use App\Models\Button; $button = Button::find($button_id); if(isset($button->name)){$buttonName = $button->name;}else{$buttonName = 0;} ?>
22

3-
<select style="display:none" name="button" class="form-control"><option class="button button-default email" value="vcard">Vcard</option></select>
3+
<select style="display:none" name="button" class="form-control"><option class="button button-default email" value="vcard">{{__('messages.Vcard')}}</option></select>
44

55
@php
66
try {
@@ -37,107 +37,107 @@
3737
catch (exception $e) {}
3838
@endphp
3939

40-
<label for='title' class='form-label'>Custom Title</label>
40+
<label for='title' class='form-label'>{{__('messages.Custom Title')}}</label>
4141
<input type='text' name='link_title' value='{{ $link_title }}' class='form-control' />
42-
<span class='small text-muted'>Leave blank for default title</span><br>
42+
<span class='small text-muted'>{{__('messages.Leave blank for default title')}}</span><br>
4343

4444
{{-- <br><h5>Upload existing file</h5>
4545
<div class="form-group col-lg-8">
4646
<label>Vcard</label>
4747
<input type="file" accept="text/vcard" class="form-control-file" name="vcard">
4848
</div> --}}
4949

50-
<br><br><h4>Name</h4>
51-
<label for='prefix' class='form-label'>Prefix</label>
50+
<br><br><h4>{{__('messages.Name')}}</h4>
51+
<label for='prefix' class='form-label'>{{__('messages.Prefix')}}</label>
5252
<input type='text' name='prefix' value='{{$prefix ?? ''}}' class='form-control'/>
5353
<br>
54-
<label for='first_name' class='form-label'>First Name</label>
54+
<label for='first_name' class='form-label'>{{__('messages.First Name')}}</label>
5555
<input type='text' name='first_name' value='{{$firstName ?? ''}}' class='form-control'/>
5656
<br>
57-
<label for='middle_name' class='form-label'>Middle Name</label>
57+
<label for='middle_name' class='form-label'>{{__('messages.Middle Name')}}</label>
5858
<input type='text' name='middle_name' value='{{$middleName ?? ''}}' class='form-control'/>
5959
<br>
60-
<label for='last_name' class='form-label'>Last Name</label>
60+
<label for='last_name' class='form-label'>{{__('messages.Last Name')}}</label>
6161
<input type='text' name='last_name' value='{{$lastName ?? ''}}' class='form-control'/>
6262
<br>
63-
<label for='suffix' class='form-label'>Suffix</label>
63+
<label for='suffix' class='form-label'>{{__('messages.Suffix')}}</label>
6464
<input type='text' name='suffix' value='{{$suffix ?? ''}}' class='form-control'/>
6565
<br>
6666
{{-- <label for='nickname' class='form-label'>Nickname</label>
6767
<input type='text' name='nickname' value='{{ ?? ''}}' class='form-control'/>
6868
<br> --}}
6969

70-
<br><h4>Work</h4>
71-
<label for='organization' class='form-label'>Organization</label>
70+
<br><h4>{{__('messages.Work')}}</h4>
71+
<label for='organization' class='form-label'>{{__('messages.Organization')}}</label>
7272
<input type='text' name='organization' value='{{$organization ?? ''}}' class='form-control'/>
7373
<br>
74-
<label for='vtitle' class='form-label'>Title</label>
74+
<label for='vtitle' class='form-label'>{{__('messages.Title')}}</label>
7575
<input type='text' name='vtitle' value='{{$vtitle ?? ''}}' class='form-control'/>
7676
<br>
77-
<label for='role' class='form-label'>Role</label>
77+
<label for='role' class='form-label'>{{__('messages.Role')}}</label>
7878
<input type='text' name='role' value='{{$role ?? ''}}' class='form-control'/>
7979
<br>
80-
<label for='work_url' class='form-label'>Work URL</label>
80+
<label for='work_url' class='form-label'>{{__('messages.Work URL')}}</label>
8181
<input type='url' name='work_url' value='{{$workUrl ?? ''}}' class='form-control'/>
8282
<br>
8383

84-
<br><h4>Emails</h4>
85-
<label for='email' class='form-label'>Email</label>
84+
<br><h4>{{__('messages.Emails')}}</h4>
85+
<label for='email' class='form-label'>{{__('messages.Email')}}</label>
8686
<input type='email' name='email' value='{{$email ?? ''}}' class='form-control'/>
87-
<span class='small text-muted'>Enter your personal email</span>
87+
<span class='small text-muted'>{{__('messages.Enter your personal email')}}</span>
8888
<br>
89-
<label for='work_email' class='form-label'>Work Email</label>
89+
<label for='work_email' class='form-label'>{{__('messages.Work Email')}}</label>
9090
<input type='email' name='work_email' value='{{$workEmail ?? ''}}' class='form-control'/>
91-
<span class='small text-muted'>Enter your work email</span>
91+
<span class='small text-muted'>{{__('messages.Enter your work email')}}</span>
9292
<br>
9393

94-
<br><h4>Phones</h4>
95-
<label for='home_phone' class='form-label'>Home Phone</label>
94+
<br><h4>{{__('messages.Phones')}}</h4>
95+
<label for='home_phone' class='form-label'>{{__('messages.Home Phone')}}</label>
9696
<input type='tel' name='home_phone' value='{{$homePhone ?? ''}}' class='form-control'/>
9797
<br>
98-
<label for='work_phone' class='form-label'>Work Phone</label>
98+
<label for='work_phone' class='form-label'>{{__('messages.Work Phone')}}</label>
9999
<input type='tel' name='work_phone' value='{{$workPhone ?? ''}}' class='form-control'/>
100100
<br>
101-
<label for='cell_phone' class='form-label'>Cell Phone</label>
101+
<label for='cell_phone' class='form-label'>{{__('messages.Cell Phone')}}</label>
102102
<input type='tel' name='cell_phone' value='{{$cellPhone ?? ''}}' class='form-control'/>
103103
<br>
104104

105105
<br><h4>Home Address</h4>
106-
<label for='home_address_label' class='form-label'>Label</label>
106+
<label for='home_address_label' class='form-label'>{{__('messages.Label')}}</label>
107107
<input type='text' name='home_address_label' value='{{$homeAddressLabel ?? ''}}' class='form-control'/>
108108
<br>
109-
<label for='home_address_street' class='form-label'>Street</label>
109+
<label for='home_address_street' class='form-label'>{{__('messages.Street')}}</label>
110110
<input type='text' name='home_address_street' value='{{$homeAddressStreet ?? ''}}' class='form-control'/>
111111
<br>
112-
<label for='home_address_city' class='form-label'>City</label>
112+
<label for='home_address_city' class='form-label'>{{__('messages.City')}}</label>
113113
<input type='text' name='home_address_city' value='{{$homeAddressCity ?? ''}}' class='form-control'/>
114114
<br>
115-
<label for='home_address_state' class='form-label'>State/Province</label>
115+
<label for='home_address_state' class='form-label'>{{__('messages.State/Province')}}</label>
116116
<input type='text' name='home_address_state' value='{{$homeAddressState ?? ''}}' class='form-control'/>
117117
<br>
118-
<label for='home_address_zip' class='form-label'>Zip/Postal Code</label>
118+
<label for='home_address_zip' class='form-label'>{{__('messages.Zip/Postal Code')}}</label>
119119
<input type='text' name='home_address_zip' value='{{$homeAddressZip ?? ''}}' class='form-control'/>
120120
<br>
121-
<label for='home_address_country' class='form-label'>Country</label>
121+
<label for='home_address_country' class='form-label'>{{__('messages.Country')}}</label>
122122
<input type='text' name='home_address_country' value='{{$homeAddressCountry ?? ''}}' class='form-control'/>
123123
<br>
124-
<br><h4>Work Address</h4>
125-
<label for='work_address_label' class='form-label'>Label</label>
124+
<br><h4>{{__('messages.Work Address')}}</h4>
125+
<label for='work_address_label' class='form-label'>{{__('messages.Label')}}</label>
126126
<input type='text' name='work_address_label' value='{{$workAddressLabel ?? ''}}' class='form-control'/>
127127
<br>
128-
<label for='work_address_street' class='form-label'>Street</label>
128+
<label for='work_address_street' class='form-label'>{{__('messages.Street')}}</label>
129129
<input type='text' name='work_address_street' value='{{$workAddressStreet ?? ''}}' class='form-control'/>
130130
<br>
131-
<label for='work_address_city' class='form-label'>City</label>
131+
<label for='work_address_city' class='form-label'>{{__('messages.City')}}</label>
132132
<input type='text' name='work_address_city' value='{{$workAddressCity ?? ''}}' class='form-control'/>
133133
<br>
134-
<label for='work_address_state' class='form-label'>State/Province</label>
134+
<label for='work_address_state' class='form-label'>{{__('messages.State/Province')}}</label>
135135
<input type='text' name='work_address_state' value='{{$workAddressState ?? ''}}' class='form-control'/>
136136
<br>
137-
<label for='work_address_zip' class='form-label'>Zip/Postal Code</label>
137+
<label for='work_address_zip' class='form-label'>{{__('messages.Zip/Postal Code')}}</label>
138138
<input type='text' name='work_address_zip' value='{{$workAddressZip ?? ''}}' class='form-control'/>
139139
<br>
140-
<label for='work_address_country' class='form-label'>Country</label>
140+
<label for='work_address_country' class='form-label'>{{__('messages.Country')}}</label>
141141
<input type='text' name='work_address_country' value='{{$workAddressCountry ?? ''}}' class='form-control'/>
142142
<br>
143143

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<label for='title' class='form-label'>Title</label>
1+
<label for='title' class='form-label'>{{__('messages.Title')}}</label>
22
<input type='text' name='title' value='{{$link_title}}' placeholder="Leave blank for default video title" class='form-control' />
33

4-
<label for='link' class='form-label'>URL</label>
4+
<label for='link' class='form-label'>{{__('messages.URL')}}</label>
55
<input type='url' name='link' value='{{$link_url}}' class='form-control' />
6-
<span class='small text-muted'>URL to the video</span>
6+
<span class='small text-muted'>{{__('messages.URL to the video')}}</span>
77

0 commit comments

Comments
 (0)