Skip to content

Commit 1dc25f5

Browse files
committed
Translated links page
1 parent 243d2d9 commit 1dc25f5

File tree

2 files changed

+24
-8
lines changed

2 files changed

+24
-8
lines changed

resources/lang/en/messages.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -731,6 +731,22 @@
731731
'Warn.Disable.Maintenance' => 'You are about to disable Maintenance Mode. Are you sure?+',
732732

733733

734+
/*
735+
|--------------------------------------------------------------------------
736+
| LinkStack (Links) Page
737+
|--------------------------------------------------------------------------
738+
|
739+
| resources/views/littlelink.blade.php
740+
|
741+
*/
742+
743+
'Share this page' => 'Share this page+',
744+
'Share' => 'Share+',
745+
'Copy URL to clipboard' => 'Copy URL to clipboard+',
746+
'URL has been copied to your clipboard!' => 'URL has been copied to your clipboard!+',
747+
'Verified user' => 'Verified user+',
748+
749+
734750
/*
735751
|--------------------------------------------------------------------------
736752
| Notification messages

resources/views/littlelink.blade.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -199,13 +199,13 @@ function themeAsset($path){
199199
<script>{!! file_get_contents(base_path("assets/linkstack/js/jquery.min.js")) !!}</script>
200200
<div align="right" class="sharediv">
201201
<div>
202-
<span class="sharebutton button-hover icon-hover share-button" data-share="{{url()->current()}}" tabindex="0" role="button" aria-label="Share this page">
202+
<span class="sharebutton button-hover icon-hover share-button" data-share="{{url()->current()}}" tabindex="0" role="button" aria-label="{{__('messages.Share this page')}}">
203203
<i style="color: black;" class="fa-solid fa-share sharebutton-img share-icon hvr-icon"></i>
204-
<span class="sharebutton-mb">Share</span>
204+
<span class="sharebutton-mb">{{__('messages.Share')}}</span>
205205
</span>
206206
</div>
207207
</div>
208-
<span class="copy-icon" tabindex="0" role="button" aria-label="Copy URL to clipboard">
208+
<span class="copy-icon" tabindex="0" role="button" aria-label="{{__('messages.Copy URL to clipboard')}}">
209209
</span>
210210

211211
<script>
@@ -215,17 +215,17 @@ function themeAsset($path){
215215
const valueToShare = button.dataset.share;
216216
if (navigator.share) {
217217
navigator.share({
218-
title: 'Share this page',
218+
title: "{{__('messages.Share this page')}}",
219219
url: valueToShare
220220
})
221-
.catch(err => console.error('Error sharing:', err));
221+
.catch(err => console.error('Error:', err));
222222
} else {
223223
navigator.clipboard.writeText(valueToShare)
224224
.then(() => {
225-
alert('URL has been copied to your clipboard!');
225+
alert("{{__('messages.URL has been copied to your clipboard!')}}");
226226
})
227227
.catch(err => {
228-
alert('Error copying URL:', err);
228+
alert('Error', err);
229229
});
230230
}
231231
});
@@ -249,7 +249,7 @@ function themeAsset($path){
249249
@endif
250250

251251
<!-- Your Name -->
252-
<h1 class="fadein">{{ $info->name }}@if(($userinfo->role == 'vip' or $userinfo->role == 'admin') and theme('disable_verification_badge') != "true" and env('HIDE_VERIFICATION_CHECKMARK') != true and UserData::getData($userinfo->id, 'checkmark') != false)<span title="Verified user">@include('components.verify-svg')@endif</span></h1>
252+
<h1 class="fadein">{{ $info->name }}@if(($userinfo->role == 'vip' or $userinfo->role == 'admin') and theme('disable_verification_badge') != "true" and env('HIDE_VERIFICATION_CHECKMARK') != true and UserData::getData($userinfo->id, 'checkmark') != false)<span title="{{__('messages.Verified user')}}">@include('components.verify-svg')@endif</span></h1>
253253

254254
<!-- Short Bio -->
255255
<style>.description-parent * {margin-bottom: 1em;}.description-parent {padding-bottom: 30px;}</style>

0 commit comments

Comments
 (0)