Bene has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/89698


Change subject: (bug 46538) keyboard shortcut to get to Wikidata item
......................................................................

(bug 46538) keyboard shortcut to get to Wikidata item

Change-Id: Icc399966ecfbd5884145902da639b8e763ed8c8a
---
M client/WikibaseClient.i18n.php
M client/includes/RepoItemLinkGenerator.php
2 files changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Wikibase 
refs/changes/98/89698/1

diff --git a/client/WikibaseClient.i18n.php b/client/WikibaseClient.i18n.php
index 4d74fe3..671029c 100644
--- a/client/WikibaseClient.i18n.php
+++ b/client/WikibaseClient.i18n.php
@@ -39,6 +39,7 @@
        'wikibase-dataitem' => 'Data item',
        'wikibase-editlinks' => 'Edit links',
        'wikibase-editlinkstitle' => 'Edit interlanguage links',
+       'wikibase-accesskey-editlinks' => 'g',
        'wikibase-linkitem-addlinks' => 'Add links',
        'wikibase-linkitem-alreadylinked' => 'The page you wanted to link with 
is already attached to an [$1 item] on the central data repository which links 
to $2 on this site. Items can only have one page per site attached. Please 
choose a different page to link with.',
        'wikibase-linkitem-close' => 'Close dialog and reload page',
diff --git a/client/includes/RepoItemLinkGenerator.php 
b/client/includes/RepoItemLinkGenerator.php
index 8fa69ee..2eccff1 100644
--- a/client/includes/RepoItemLinkGenerator.php
+++ b/client/includes/RepoItemLinkGenerator.php
@@ -142,8 +142,9 @@
                $link = array(
                        'href' => $this->repoLinker->repoItemUrl( $entityId ) . 
$fragment,
                        'text' => wfMessage( 'wikibase-editlinks' )->text(),
-                       'title' => wfMessage( 'wikibase-editlinkstitle' 
)->text(),
+                       'title' => wfMessage( 'wikibase-editlinkstitle' 
)->text() . ' [' . wfMessage( 'wikibase-accesskey-editlinks' )->text() . ']',
                        'class' => 'wbc-editpage',
+                       'accesskey' => wfMessage( 
'wikibase-accesskey-editlinks' )->text(),
                );
 
                return $link;

-- 
To view, visit https://gerrit.wikimedia.org/r/89698
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Icc399966ecfbd5884145902da639b8e763ed8c8a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Bene <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to