'wcf.user.panel.markAllAsRead': '{lang}wcf.user.panel.markAllAsRead{/lang}',
'wcf.user.panel.markAsRead': '{lang}wcf.user.panel.markAsRead{/lang}',
'wcf.user.panel.settings': '{lang}wcf.user.panel.settings{/lang}',
- 'wcf.user.panel.showAll': '{lang}wcf.user.panel.showAll{/lang}'
+ 'wcf.user.panel.showAll': '{lang}wcf.user.panel.showAll{/lang}',
+ 'wcf.menu.page': '{lang}wcf.menu.page{/lang}',
+ 'wcf.menu.user': '{lang}wcf.menu.user{/lang}'
{if MODULE_LIKE}
,'wcf.like.button.like': '{lang}wcf.like.button.like{/lang}',
'wcf.like.button.dislike': '{lang}wcf.like.button.dislike{/lang}',
'wcf.global.success.add': '{lang}wcf.global.success.add{/lang}',
'wcf.global.success.edit': '{lang}wcf.global.success.edit{/lang}',
'wcf.global.thousandsSeparator': '{capture assign=thousandsSeparator}{lang}wcf.global.thousandsSeparator{/lang}{/capture}{@$thousandsSeparator|encodeJS}',
- 'wcf.page.pagePosition': '{lang __literal=true}wcf.page.pagePosition{/lang}'
+ 'wcf.page.pagePosition': '{lang __literal=true}wcf.page.pagePosition{/lang}',
+ 'wcf.menu.page': '{lang}wcf.menu.page{/lang}',
+ 'wcf.menu.user': '{lang}wcf.menu.user{/lang}'
{event name='javascriptLanguageImport'}
});
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @module WoltLabSuite/Core/Ui/Page/Menu/Main
*/
-define(['Core', 'Dom/Traverse', './Abstract'], function(Core, DomTraverse, UiPageMenuAbstract) {
+define(['Core', 'Language', 'Dom/Traverse', './Abstract'], function(Core, Language, DomTraverse, UiPageMenuAbstract) {
"use strict";
var _container = null, _hasItems = null, _list = null, _navigationList = null, _spacer = null;
}
}).bind(this));
}
+
+ elAttr(this._button, 'aria-label', Language.get('wcf.menu.page'));
+ elAttr(this._button, 'role', 'button');
},
open: function (event) {
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
* @module WoltLabSuite/Core/Ui/Page/Menu/User
*/
-define(['Core', 'EventHandler', './Abstract'], function(Core, EventHandler, UiPageMenuAbstract) {
+define(['Core', 'EventHandler', 'Language', './Abstract'], function(Core, EventHandler, Language, UiPageMenuAbstract) {
"use strict";
/**
}
}).bind(this));
}).bind(this));
+
+ elAttr(this._button, 'aria-label', Language.get('wcf.menu.user'));
+ elAttr(this._button, 'role', 'button');
},
close: function (event) {