diff --git a/administrator/language/en-GB/en-GB.mod_latestactions.ini b/administrator/language/en-GB/en-GB.mod_latestactions.ini index 093c175dca254..7a883a682ae3d 100644 --- a/administrator/language/en-GB/en-GB.mod_latestactions.ini +++ b/administrator/language/en-GB/en-GB.mod_latestactions.ini @@ -8,4 +8,7 @@ MOD_LATESTACTIONS_FIELD_COUNT_LABEL="Count" MOD_LATESTACTIONS_FIELD_COUNT_DESC="The number of items to display (default 5)." MOD_LATESTACTIONS_LAYOUT_DEFAULT="Default" MOD_LATEST_ACTIONS_NO_MATCHING_RESULTS="No Matching Results" +MOD_LATESTACTIONS_TITLE="Last Actions" +MOD_LATESTACTIONS_TITLE_1="Last Action" +MOD_LATESTACTIONS_TITLE_MORE="Last %s Actions" MOD_LATESTACTIONS_XML_DESCRIPTION="This module shows a list of the most recent actions." diff --git a/administrator/modules/mod_latestactions/helper.php b/administrator/modules/mod_latestactions/helper.php index 8f2fce6a095eb..fa1ecfc3c0c64 100644 --- a/administrator/modules/mod_latestactions/helper.php +++ b/administrator/modules/mod_latestactions/helper.php @@ -49,4 +49,18 @@ public static function getList(&$params) return $rows; } + + /** + * Get the alternate title for the module + * + * @param \Joomla\Registry\Registry $params The module parameters. + * + * @return string The alternate title for the module. + * + * @since 3.9.1 + */ + public static function getTitle($params) + { + return JText::plural('MOD_LATESTACTIONS_TITLE', $params->get('count', 5)); + } } diff --git a/administrator/modules/mod_latestactions/mod_latestactions.php b/administrator/modules/mod_latestactions/mod_latestactions.php index 4a125d42cd665..00ca070dd2aac 100644 --- a/administrator/modules/mod_latestactions/mod_latestactions.php +++ b/administrator/modules/mod_latestactions/mod_latestactions.php @@ -22,7 +22,7 @@ if ($params->get('automatic_title', 0)) { - $module->title = ModLatestHelper::getTitle($params); + $module->title = ModLatestActionsHelper::getTitle($params); } require JModuleHelper::getLayoutPath('mod_latestactions', $params->get('layout', 'default'));