diff --git a/resources/lang/en/messages.php b/resources/lang/en/messages.php
index 79e2802..9ecde21 100644
--- a/resources/lang/en/messages.php
+++ b/resources/lang/en/messages.php
@@ -127,6 +127,7 @@ return [
'Reason:' => 'Reason:+',
'Close' => 'Close+',
+ 'Dismiss' => 'Dismiss+',
'All Notifications' => 'All Notifications+',
@@ -546,7 +547,38 @@ return [
'Warn.Disable.Maintenance' => 'You are about to disable Maintenance Mode. Are you sure?+',
+ /*
+ |--------------------------------------------------------------------------
+ | Notification messages
+ |--------------------------------------------------------------------------
+ |
+ | All internal notifications.
+ | resources/views/layouts/notifications.blade.php
+ |
+ */
+
+ 'No notifications' => 'No notifications+',
+
+ 'Your security is at risk!' => 'Your security is at risk!+',
+ 'Immediate action is required!' => 'Immediate action is required!+',
+ 'Your security is at risk!' => 'Your security is at risk!+',
+ 'security.msg1' => 'Your security is at risk.+',
+ 'security.msg2' => 'Some files can be accessed by everyone. Immediate action is required!+',
+ 'security.msg3' => 'Some important files, are publicly accessible, putting your security at risk. Please take immediate action to revoke public access to these files to prevent unauthorized access to your sensitive information.+',
+ 'security.msg4' => 'Learn more+',
+
+ 'Hide this notification' => 'Hide this notification+',
+ 'Help Us Out' => 'Help Us Out+',
+ 'Enjoying Linkstack?' => 'Enjoying Linkstack?+',
+ 'Support Linkstack' => 'Support Linkstack+',
+ 'support.msg1' => 'If you\'re enjoying using Linkstack, we would greatly appreciate it if you could take a moment to+',
+ 'support.msg2' => 'give our project a star on GitHub+',
+ 'support.msg3' => 'Your support will help us reach a wider audience and improve the quality of our project.+',
+ 'support.msg4' => 'If you\'re able to+',
+ 'support.msg5' => 'make a financial contribution, even a small amount would help us cover the costs of maintaining and improving Linkstack.+',
+ 'support.msg6' => 'Thank you for your support and for being a part of the LinkStack community!+',
+
+
'' => '+',
-
];
\ No newline at end of file
diff --git a/resources/views/layouts/notifications.blade.php b/resources/views/layouts/notifications.blade.php
index 202b36c..919b95c 100644
--- a/resources/views/layouts/notifications.blade.php
+++ b/resources/views/layouts/notifications.blade.php
@@ -3,9 +3,11 @@ use App\Models\UserData;
$GLOBALS['activenotify'] = true;
$compromised = false;
function notification($dismiss = '', $ntid, $heading, $body) {
+ $closeMSG = __('messages.Close');
+ $dismissMSG = __('messages.Dismiss');
$dismissBtn = '';
if ($dismiss) {
- $dismissBtn = 'Dismiss';
+ $dismissBtn = ''.$dismissMSG.'';
}
echo <<
@@ -22,7 +24,7 @@ function notification($dismiss = '', $ntid, $heading, $body) {
@@ -84,19 +86,19 @@ $notifyID = Auth::user()->id;
[
'id' => 'modal-1',
'icon' => 'bi bi-exclamation-triangle-fill text-danger',
- 'title' => 'Your security is at risk!',
- 'message' => 'Immediate action is required!',
+ 'title' => __('messages.Your security is at risk!'),
+ 'message' => __('messages.Immediate action is required!'),
'condition' => $compromised,
- 'dismiss' => 'Dismiss this notification',
+ 'dismiss' => '',
'adminonly' => true,
],
[
'id' => 'modal-star',
'icon' => 'bi bi-heart-fill',
- 'title' => 'Enjoying Linkstack?',
- 'message' => 'Help Us Out',
+ 'title' => __('messages.Enjoying Linkstack?'),
+ 'message' => __('messages.Help Us Out'),
'condition' => UserData::getData($notifyID, 'hide-star-notification') !== true,
- 'dismiss' => 'Hide this notification',
+ 'dismiss' => __('messages.Hide this notification'),
'adminonly' => true,
],
];
@@ -115,7 +117,7 @@ $notifyID = Auth::user()->id;
@else
@php $GLOBALS['activenotify'] = false; @endphp
@push('notifications')
- No notifications
+ {{__('messages.No notifications')}}
@endpush
@endif
@@ -123,8 +125,8 @@ $notifyID = Auth::user()->id;
{{-- Notification Modals --}}
@push('sidebar-scripts') @php
-notification('', 'modal-1', 'Your security is at risk!', 'Your security is at risk. Some files can be accessed by everyone. Immediate action is required!
Some important files, are publicly accessible, putting your security at risk. Please take immediate action to revoke public access to these files to prevent unauthorized access to your sensitive information.
Learn more.');
-notification('hide-star-notification', 'modal-star', 'Support Linkstack', 'If you\'re enjoying using Linkstack, we would greatly appreciate it if you could take a moment to give our project a star on GitHub. Your support will help us reach a wider audience and improve the quality of our project.
If you\'re able to make a financial contribution, even a small amount would help us cover the costs of maintaining and improving Linkstack.
Thank you for your support and for being a part of the LinkStack community!');
+notification('', 'modal-1', __('messages.Your security is at risk!'), ''.__('messages.security.msg1').' '.__('messages.security.msg2').'
'.__('messages.security.msg3').'
'.__('messages.security.msg3').'.');
+notification('hide-star-notification', 'modal-star', __('messages.Support Linkstack'), ''.__('messages.support.msg1').' '.__('messages.support.msg2').'. '.__('messages.support.msg3').'
'.__('messages.support.msg4').' '.__('messages.support.msg5').'
'.__('messages.support.msg6').'');
@endphp @endpush
@php