From f8481d56dea215ddb14b74d2ac1b28f85aa72a14 Mon Sep 17 00:00:00 2001 From: Nicola Galgano Date: Mon, 6 Jan 2025 10:53:41 +0100 Subject: [PATCH 1/2] load-lang-4-component-action --- .../components/com_users/src/Helper/DebugHelper.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/administrator/components/com_users/src/Helper/DebugHelper.php b/administrator/components/com_users/src/Helper/DebugHelper.php index 2635774858057..d0aecb3273db0 100644 --- a/administrator/components/com_users/src/Helper/DebugHelper.php +++ b/administrator/components/com_users/src/Helper/DebugHelper.php @@ -85,6 +85,11 @@ public static function getDebugActions($component = null) $component_actions = Access::getActionsFromFile(JPATH_ADMINISTRATOR . '/components/' . $component . '/access.xml'); if (!empty($component_actions)) { + + // Load language + $lang = Factory::getApplication()->getLanguage(); + $lang->load($component, JPATH_ADMINISTRATOR, null, false, false); + foreach ($component_actions as &$action) { $descr = (string) $action->title; From 13dce26fed749f053939e52d5192c8a93f62a3a7 Mon Sep 17 00:00:00 2001 From: Nicola Galgano Date: Sat, 11 Jan 2025 12:43:57 +0100 Subject: [PATCH 2/2] cs --- administrator/components/com_users/src/Helper/DebugHelper.php | 1 - 1 file changed, 1 deletion(-) diff --git a/administrator/components/com_users/src/Helper/DebugHelper.php b/administrator/components/com_users/src/Helper/DebugHelper.php index d0aecb3273db0..dda89bf802f11 100644 --- a/administrator/components/com_users/src/Helper/DebugHelper.php +++ b/administrator/components/com_users/src/Helper/DebugHelper.php @@ -85,7 +85,6 @@ public static function getDebugActions($component = null) $component_actions = Access::getActionsFromFile(JPATH_ADMINISTRATOR . '/components/' . $component . '/access.xml'); if (!empty($component_actions)) { - // Load language $lang = Factory::getApplication()->getLanguage(); $lang->load($component, JPATH_ADMINISTRATOR, null, false, false);