Last modified: 2014-10-03 12:32:08 UTC
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)
Change 145889 had a related patch set uploaded by Gerrit Patch Uploader: Get localized access key tooltip mw.util.addPortletLink() https://gerrit.wikimedia.org/r/145889
Upstream bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=1037990
Change 160300 had a related patch set uploaded by Gerrit Patch Uploader: jquery.accessKeyLabel: Append element into DOM on empty accessKeyLabel https://gerrit.wikimedia.org/r/160300
Change 145889 merged by jenkins-bot: mediawiki.util: Insert node before updating tooltip for accesskey https://gerrit.wikimedia.org/r/145889
As I understand it this issue is fixed, with the jquery.accessKeyLabel patch being a more generic solution.