John Erling Blad has uploaded a new change for review.

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


Change subject: (Bug 45353) Add ItemDisambiguation to the list of special pages
......................................................................

(Bug 45353) Add ItemDisambiguation to the list of special pages

Changes so ItemDisambiguation and ItemByTitle can be added
tothe list of special pages. Also some minor changes to the
messages used for those pages.

Change-Id: Id197c49dd52c482eb162f56522e5f0db0256b90a
---
M repo/Wikibase.i18n.php
M repo/Wikibase.php
M repo/includes/specials/SpecialItemByTitle.php
M repo/includes/specials/SpecialItemDisambiguation.php
M repo/includes/specials/SpecialItemResolver.php
5 files changed, 18 insertions(+), 18 deletions(-)


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

diff --git a/repo/Wikibase.i18n.php b/repo/Wikibase.i18n.php
index d98eb6d..03e756a 100644
--- a/repo/Wikibase.i18n.php
+++ b/repo/Wikibase.i18n.php
@@ -112,7 +112,7 @@
        'wikibase-itemlink-title' => '$1 | $2',
 
        // Special pages
-       'special-itembytitle' => 'Item by title',
+       'special-itembytitle' => 'Item by sitelink',
        'wikibase-itembytitle-lookup-fieldset' => 'Search for items by site and 
title',
        'wikibase-itembytitle-lookup-site' => 'Site:',
        'wikibase-itembytitle-lookup-page' => 'Page:',
@@ -121,8 +121,8 @@
        'wikibase-itembytitle-invalid-site' => 'The previous query could not be 
used for a search. Please provide a valid site identifier.',
        'wikibase-itembytitle-description' => 'Site is an identifier code, such 
as "enwiki".',
        'wikibase-itembytitle-create' => 'You can also 
[{{fullurl:Special:CreateItem|site=$1&page=$2}} create an item].',
-       'special-itemdisambiguation' => 'Disambiguation: Items with the same 
label',
-       'wikibase-itemdisambiguation-lookup-fieldset' => 'Search for items by 
label',
+       'special-itemdisambiguation' => 'Item disambiguation',
+       'wikibase-itemdisambiguation-lookup-fieldset' => 'Search for items by 
language and label',
        'wikibase-itemdisambiguation-lookup-language' => 'Language:',
        'wikibase-itemdisambiguation-lookup-label' => 'Label:',
        'wikibase-itemdisambiguation-submit' => 'Search',
diff --git a/repo/Wikibase.php b/repo/Wikibase.php
index 2111cee..f578609 100644
--- a/repo/Wikibase.php
+++ b/repo/Wikibase.php
@@ -228,29 +228,29 @@
 
 // Special page registration
 $wgSpecialPages['CreateItem']                                          = 
'SpecialCreateItem';
+$wgSpecialPages['EntitiesWithoutLabel']                        = 
'SpecialEntitiesWithoutLabel';
 $wgSpecialPages['ItemByTitle']                                                 
= 'SpecialItemByTitle';
 $wgSpecialPages['ItemDisambiguation']                          = 
'SpecialItemDisambiguation';
-$wgSpecialPages['SetLabel']                                            = 
'SpecialSetLabel';
-$wgSpecialPages['SetDescription']                                      = 
'SpecialSetDescription';
-$wgSpecialPages['SetAliases']                                          = 
'SpecialSetAliases';
-$wgSpecialPages['EntitiesWithoutLabel']                        = 
'SpecialEntitiesWithoutLabel';
 $wgSpecialPages['ItemsWithoutSitelinks']               = 
'SpecialItemsWithoutSitelinks';
-$wgSpecialPages['NewProperty']                                                 
= 'SpecialNewProperty';
 $wgSpecialPages['ListDatatypes']                                       = 
'SpecialListDatatypes';
+$wgSpecialPages['NewProperty']                                                 
= 'SpecialNewProperty';
+$wgSpecialPages['SetAliases']                                          = 
'SpecialSetAliases';
+$wgSpecialPages['SetDescription']                                      = 
'SpecialSetDescription';
+$wgSpecialPages['SetLabel']                                            = 
'SpecialSetLabel';
 
 
 // Special page groups
 $wgSpecialPageGroups['CreateItem']                                     = 
'wikibaserepo';
-$wgSpecialPageGroups['NewProperty']                                    = 
'wikibaserepo';
-$wgSpecialPageGroups['ItemByTitle']                                    = 
'wikibaserepo';
-$wgSpecialPageGroups['ItemDisambiguation']                     = 
'wikibaserepo';
-$wgSpecialPageGroups['SetLabel']                                       = 
'wikibaserepo';
-$wgSpecialPageGroups['SetDescription']                         = 
'wikibaserepo';
-$wgSpecialPageGroups['SetAliases']                                     = 
'wikibaserepo';
 $wgSpecialPageGroups['EntitiesWithoutLabel']           = 'wikibaserepo';
 $wgSpecialPageGroups['EntityData']                                     = 
'wikibaserepo';
+$wgSpecialPageGroups['ItemByTitle']                                    = 
'wikibaserepo';
+$wgSpecialPageGroups['ItemDisambiguation']                     = 
'wikibaserepo';
 $wgSpecialPageGroups['ItemsWithoutSitelinks']          = 'wikibaserepo';
 $wgSpecialPageGroups['ListDatatypes']                          = 
'wikibaserepo';
+$wgSpecialPageGroups['NewProperty']                                    = 
'wikibaserepo';
+$wgSpecialPageGroups['SetAliases']                                     = 
'wikibaserepo';
+$wgSpecialPageGroups['SetDescription']                         = 
'wikibaserepo';
+$wgSpecialPageGroups['SetLabel']                                       = 
'wikibaserepo';
 
 
 // Hooks
diff --git a/repo/includes/specials/SpecialItemByTitle.php 
b/repo/includes/specials/SpecialItemByTitle.php
index bfbaa59..36097f0 100644
--- a/repo/includes/specials/SpecialItemByTitle.php
+++ b/repo/includes/specials/SpecialItemByTitle.php
@@ -35,7 +35,7 @@
         * @since 0.1
         */
        public function __construct() {
-               parent::__construct( 'ItemByTitle' );
+               parent::__construct( 'ItemByTitle', '', true );
        }
 
        /**
diff --git a/repo/includes/specials/SpecialItemDisambiguation.php 
b/repo/includes/specials/SpecialItemDisambiguation.php
index 171aee4..b79e82c 100644
--- a/repo/includes/specials/SpecialItemDisambiguation.php
+++ b/repo/includes/specials/SpecialItemDisambiguation.php
@@ -37,7 +37,7 @@
         * @since 0.1
         */
        public function __construct() {
-               parent::__construct( 'ItemDisambiguation' );
+               parent::__construct( 'ItemDisambiguation', '', true );
        }
 
        /**
diff --git a/repo/includes/specials/SpecialItemResolver.php 
b/repo/includes/specials/SpecialItemResolver.php
index ce77fff..550c051 100644
--- a/repo/includes/specials/SpecialItemResolver.php
+++ b/repo/includes/specials/SpecialItemResolver.php
@@ -37,8 +37,8 @@
         *
         * @param string $name
         */
-       public function __construct( $name ) {
-               parent::__construct( $name, '', false );
+       public function __construct( $name, $restricted, $listed ) {
+               parent::__construct( $name, $restricted, $listed );
        }
 
        /**

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id197c49dd52c482eb162f56522e5f0db0256b90a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: John Erling Blad <[email protected]>

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

Reply via email to