From 39482bd8ab4d2d1e404272fa064ba05c4580ed25 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 17 Oct 2024 16:41:58 +1300 Subject: [PATCH] ENH Update localisation string keys --- code/LeftAndMain.php | 6 +++--- code/SecurityAdmin.php | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 1e6f29b65..12eb07b64 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -1477,7 +1477,7 @@ public function providePermissions() $perms = [ "CMS_ACCESS_LeftAndMain" => [ 'name' => _t(__CLASS__ . '.ACCESSALLINTERFACES', 'Access to all CMS sections'), - 'category' => _t(Permission::class . '.CMS_ACCESS_CATEGORY', 'CMS Access'), + 'category' => _t(__CLASS__ . '.CMS_ACCESS_CATEGORY', 'CMS Access'), 'help' => _t(__CLASS__ . '.ACCESSALLINTERFACESHELP', 'Overrules more specific access settings.'), 'sort' => -100 ] @@ -1509,11 +1509,11 @@ public function providePermissions() $perms[$code] = [ // Item in permission selection identifying the admin section. Example: Access to 'Files & Images' 'name' => _t( - CMSMain::class . '.ACCESS', + __CLASS__ . '.ACCESS', "Access to '{title}' section", ['title' => $title] ), - 'category' => _t(Permission::class . '.CMS_ACCESS_CATEGORY', 'CMS Access') + 'category' => _t(__CLASS__ . '.CMS_ACCESS_CATEGORY', 'CMS Access') ]; } diff --git a/code/SecurityAdmin.php b/code/SecurityAdmin.php index 561f282e0..97f3ed216 100755 --- a/code/SecurityAdmin.php +++ b/code/SecurityAdmin.php @@ -141,11 +141,11 @@ public function providePermissions() return [ "CMS_ACCESS_SecurityAdmin" => [ 'name' => _t( - CMSMain::class . '.ACCESS', + LeftAndMain::class . '.ACCESS', "Access to '{title}' section", ['title' => $title] ), - 'category' => _t(Permission::class . '.CMS_ACCESS_CATEGORY', 'CMS Access'), + 'category' => _t(LeftAndMain::class . '.CMS_ACCESS_CATEGORY', 'CMS Access'), 'help' => _t( __CLASS__ . '.ACCESS_HELP', 'Allow viewing, adding and editing users, as well as assigning permissions and roles to them.'