https://bugzilla.wikimedia.org/show_bug.cgi?id=67946

            Bug ID: 67946
           Summary: Localized access key label for addPortletLink
           Product: MediaWiki
           Version: 1.24-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: minor
          Priority: Unprioritized
         Component: JavaScript
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
       Web browser: Firefox
   Mobile Platform: ---

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)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to