Firefox supports localized access key labels but only when the element is appended to the DOM tree:
$('<span>').attr('accesskey', 'g').appendTo('body')[0].accessKeyLabel
--> "Alt+Umschalt+g"
$('<span>').attr('accesskey', 'g')[0].accessKeyLabel
--> ""
mw.util.addPortletLink() calls updateTooltipAccessKeys() before appending to DOM tree, so the tooltip for the access key label is not localized:
mw.util.addPortletLink( 'p-views', '#', 'Foo', 't-foo', 'Foo tooltip', 'g' );
--> Tooltip is "Foo tooltip [alt-shift-g]".
Expected result:
--> Tooltip is "Foo tooltip [Alt+Umschalt-g]". (On a German Firefox)
Version: 1.24rc
Severity: minor