From 716d193b18e6f22ecba6f95b19891fa5dc34e2ce Mon Sep 17 00:00:00 2001
From: Nicole Stallinger <stallinger.nicole@gmail.com>
Date: Tue, 19 Jan 2016 15:24:10 +1300
Subject: [PATCH] Added aria-label to menu element.

---
 plugins/CoreHome/lang/en.json         | 1 +
 plugins/CoreHome/templates/_menu.twig | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/plugins/CoreHome/lang/en.json b/plugins/CoreHome/lang/en.json
index f45d4811c2..8cb3569a97 100644
--- a/plugins/CoreHome/lang/en.json
+++ b/plugins/CoreHome/lang/en.json
@@ -24,6 +24,7 @@
         "InjectedHostSuperUserWarning": "Piwik may be misconfigured (for example, if Piwik was recently moved to a new server or URL). You can either %1$sclick here and add %2$s as the valid Piwik hostname (if you trust it)%3$s, or %4$sclick here and go to %5$s to access Piwik safely%6$s.",
         "InjectedHostWarningIntro": "You are now accessing Piwik from %1$s, but Piwik has been configured to run at this address: %2$s.",
         "JavascriptDisabled": "JavaScript must be enabled in order for you to use Piwik in standard view.<br \/>However, it seems JavaScript is either disabled or not supported by your browser.<br \/>To use standard view, enable JavaScript by changing your browser options, then %1$stry again%2$s.<br \/>",
+        "MainNavigation": "Main navigation",
         "MakeADifference": "Make a difference: %1$sDonate now%2$s to fund Piwik 2.0!",
         "MakeOneTimeDonation": "Make a one time donation, instead.",
         "Menu": "Menu",
diff --git a/plugins/CoreHome/templates/_menu.twig b/plugins/CoreHome/templates/_menu.twig
index baaa8ab8ca..d9576b49ae 100644
--- a/plugins/CoreHome/templates/_menu.twig
+++ b/plugins/CoreHome/templates/_menu.twig
@@ -33,7 +33,7 @@
         <div id="search" ng-cloak>
             <div piwik-quick-access class="borderedControl"></div>
         </div>
-        <ul role="menu" class="navbar">
+        <ul role="menu" aria-label="{{ 'CoreHome_MainNavigation'|translate|e('html_attr') }}" class="navbar">
             {% for level1,level2 in menu %}
                 {% set hasSubmenuItem = false %}
                 {% for name,urlParameters in level2 %}
-- 
GitLab