Translated Edit LInk Blade

This commit is contained in:
Frank 2023-06-06 09:39:24 +02:00
parent 124a48b1c9
commit 4a7a9e689d
2 changed files with 28 additions and 15 deletions

View File

@ -213,7 +213,20 @@ return [
'Update icon' => 'Update icon+',
'See all icons' => 'See all icons+',
########Edit Link Blade########
'Edit' => 'Edit+'
'Add' => 'Add+'
'Block' => 'Block+'
'Blocks' => 'Blocks: +'
'Select Block' => 'Select Block +'
'Toggle Dropdown' => 'Toggle Dropdown+'
'Cancel' => 'Cancel+'
'Save and Add More' => 'Save and Add More+'
'editlink.description.1-5' => 'The `Custom` button allows you to add a custom link, where the text on the button is determined with the link title set above.+',
'editlink.description.2-5' => 'The `Custom_website` button functions similar to the Custom button, with the addition of a function that requests the favicon from the chosen URL and uses it as the button icon.+',
'editlink.description.3-5' => '',
'editlink.description.4-5' => 'The `Space` button will be replaced with an empty space, so buttons could be visually separated into groups. Entering a number between 1-10 in the title section will change the empty space`s distance.+',
'editlink.description.5-5' => 'The `Heading` button will be replaced with a sub-heading, where the title defines the text on that heading.+',
'Config' => 'Config+',

View File

@ -17,7 +17,7 @@
<section class='text-gray-400'>
<h3 class="card-header"><i class="bi bi-journal-plus"> @if($LinkID !== 0) Edit @else Add @endif Block</i></h3>
<h3 class="card-header"><i class="bi bi-journal-plus"> @if($LinkID !== 0) {{__('messages.Submit')}} @else {{__('messages.Add')}} @endif {{__('messages.Block')}}</i></h3>
<div class='card-body'>
<form action="{{ route('addLink') }}" method="post" id="my-form">
@ -26,9 +26,9 @@
<input type='hidden' name='linkid' value="{{ $LinkID }}" />
<div class="form-group col-lg-8 flex justify-around">
{{-- <label class='font-weight-bold'>Blocks: </label> --}}
{{-- <label class='font-weight-bold'>{{__('messages.Blocks')}}</label> --}}
<div class="btn-group shadow m-2">
<button type="button" id='btnLinkType' class="btn btn-primary rounded-pill" title='Click to change link blocks' data-toggle="modal" data-target="#SelectLinkType">Select Block
<button type="button" id='btnLinkType' class="btn btn-primary rounded-pill" title='Click to change link blocks' data-toggle="modal" data-target="#SelectLinkType">{{__('messages.Select Block')}}
<span class="btn-inner">
<i class="bi bi-window-plus"></i>
</span>
@ -37,7 +37,7 @@
{{-- <button type="button" class="dropdown-toggle border-0 border-left-1 px-2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
<span class="sr-only">{{__('messages.Toggle Dropdown')}}</span>
</button> --}}
{{-- <div class="dropdown-menu">
@foreach ( $LinkTypes as $lt )
@ -59,9 +59,9 @@
<div class="d-flex align-items-center pt-4">
<a class="btn btn-danger me-3" href="{{ url('studio/links') }}">Cancel</a>
<button type="submit" class="btn btn-primary me-3">Save</button>
<button type="button" class="btn btn-soft-primary me-3" onclick="submitFormWithParam('add_more')">Save and Add More</button>
<a class="btn btn-danger me-3" href="{{ url('studio/links') }}">{{__('messages.Cancel')}}</a>
<button type="submit" class="btn btn-primary me-3">{{__('messages.Save')}}</button>
<button type="button" class="btn btn-soft-primary me-3" onclick="submitFormWithParam('add_more')">{{__('messages.Save and Add More')}}</button>
<script>
function submitFormWithParam(paramValue) {
// get the form element
@ -94,13 +94,13 @@
</section>
<br><br>
{{-- <details>
<summary>More information</summary>
<summary>{{__('messages.More information')}}</summary>
<pre style="color: grey;">
The 'Custom' button allows you to add a custom link, where the text on the button is determined with the link title set above.
The 'Custom_website' button functions similar to the Custom button, with the addition of a function that requests the favicon from the chosen URL and uses it as the button icon.
The 'Space' button will be replaced with an empty space, so buttons could be visually separated into groups. Entering a number between 1-10 in the title section will change the empty space's distance.
The 'Heading' button will be replaced with a sub-heading, where the title defines the text on that heading.
{{__('messages.editlink.description.1-5')}}
{{__('messages.editlink.description.2-5')}}
{{__('messages.editlink.description.3-5')}}
{{__('messages.editlink.description.4-5')}}
{{__('messages.editlink.description.5-5')}}
</pre>
</details> --}}
@ -140,7 +140,7 @@
</div>
<x-slot name="buttons">
<button type="button" class="btn btn-gray" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-gray" data-dismiss="modal">{{__('messages.Close')}}</button>
</x-slot>
</x-modal>