diff --git a/administrator/language/en-GB/plg_system_jooa11y.ini b/administrator/language/en-GB/plg_system_jooa11y.ini index 5267ba9c4bf3f..e061fc5a5ca7b 100644 --- a/administrator/language/en-GB/plg_system_jooa11y.ini +++ b/administrator/language/en-GB/plg_system_jooa11y.ini @@ -5,11 +5,11 @@ PLG_SYSTEM_JOOA11Y="System - Joomla Accessibility Checker" PLG_SYSTEM_JOOA11Y_FIELD_CHECK_ROOT="Content Container" -PLG_SYSTEM_JOOA11Y_FIELD_CHECK_ROOT_DESC="Aria Landmark on the page that will be checked for accessibility. The default setting is main." +PLG_SYSTEM_JOOA11Y_FIELD_CHECK_ROOT_DESC="Landmark on the page that will be checked for accessibility. The default setting is the landmark main. Alternatives to landmarks are classes, elements or ARIA roles (eg #example, .example, [role=example])." PLG_SYSTEM_JOOA11Y_FIELD_CONTAINER_IGNORE="Ignore Regions" -PLG_SYSTEM_JOOA11Y_FIELD_CONTAINER_IGNORE_DESC="Ignore specific regions within the Content Container. Use commas to separate classes or elements (eg #ignore, .ignore)" +PLG_SYSTEM_JOOA11Y_FIELD_CONTAINER_IGNORE_DESC="Ignore specific regions within the Content Container. Use commas to separate classes or elements (eg #ignore, .ignore)." PLG_SYSTEM_JOOA11Y_FIELD_READABILITY_ROOT="Readability Container" -PLG_SYSTEM_JOOA11Y_FIELD_READABILITY_ROOT_DESC="Aria Landmark on the page that will be checked for readability. The default setting is main." +PLG_SYSTEM_JOOA11Y_FIELD_READABILITY_ROOT_DESC="Landmark on the page that will be checked for readability. The default setting is the landmark main. Alternatives to landmarks are classes, elements or ARIA roles (eg #example, .example, [role=example])." PLG_SYSTEM_JOOA11Y_FIELD_SHOW_ALWAYS="Show Always" PLG_SYSTEM_JOOA11Y_FIELD_SHOW_ALWAYS_DESC="Load the accessiblity checker on all pages. This is useful when developing the website but should not be left on when the website is live." PLG_SYSTEM_JOOA11Y_XML_DESCRIPTION="The Joomla Accessibility Checker visually highlights common accessibility and usability issues. Geared towards content authors, the plugin identifies errors or warnings and provides guidance on how to fix them." diff --git a/plugins/system/jooa11y/jooa11y.php b/plugins/system/jooa11y/jooa11y.php index 4d4286fc7fee2..0d28403762674 100644 --- a/plugins/system/jooa11y/jooa11y.php +++ b/plugins/system/jooa11y/jooa11y.php @@ -123,6 +123,16 @@ public function initJooa11y() // Detect the current active language $lang = Factory::getLanguage()->getTag(); + // Add plugin settings from the xml + $document->addScriptOptions( + 'jooa11yOptions', + [ + 'checkRoot' => $this->params->get('checkRoot', 'main'), + 'readabilityRoot' => $this->params->get('readabilityRoot', 'main'), + 'containerIgnore' => $this->params->get('containerIgnore'), + ] + ); + // Add the language constants $constants = [ 'PLG_SYSTEM_JOOA11Y_ALERT_CLOSE',