From adee99db34942db4d1beaf6a0f04fd9f72569993 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 26 Jun 2024 11:21:56 +0100 Subject: [PATCH] Fixes #14968 - translate forbidden page Signed-off-by: snipe --- resources/lang/en-US/general.php | 1 + resources/views/errors/403.blade.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/resources/lang/en-US/general.php b/resources/lang/en-US/general.php index 85f2ba8cf7..5b1d0e9b3c 100644 --- a/resources/lang/en-US/general.php +++ b/resources/lang/en-US/general.php @@ -528,6 +528,7 @@ return [ 'permission_denied_superuser_demo' => 'Permission denied. You cannot update user information for superadmins on the demo.', 'pwd_reset_not_sent' => 'User is not activated, is LDAP synced, or does not have an email address', 'error_sending_email' => 'Error sending email', + 'sad_panda' => 'Sad panda. You are not authorized to do the thing. Maybe return to the dashboard, or contact your administrator.', 'bulk' => [ 'delete' => [ diff --git a/resources/views/errors/403.blade.php b/resources/views/errors/403.blade.php index d7405ba0f6..e2a8642ca6 100644 --- a/resources/views/errors/403.blade.php +++ b/resources/views/errors/403.blade.php @@ -20,7 +20,7 @@

403 Forbidden.

- Sad panda. You are not authorized to do the thing. Maybe return to the dashboard, or contact your administrator. + {!! trans('general.sad_panda', ['link' => config('app.url')]) !!}