TTO has uploaded a new change for review.

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

Change subject: Add additional interwiki links as requested in various bugs
......................................................................

Add additional interwiki links as requested in various bugs

* Add "mul" for Wikisource (bug 32189) and Wikiversity
* Add all chapter sites whose country code is not an ISO language code
  (bug 43027)
* Add "completelist" and "projectportal" for Wikipedia (bug 16962). The
  intention is to use these in ExtraInterlanguageLinkPrefixes
* Add aliases for wikis using non-standard ISO codes (bug 21915), for the
  benefit of Wiktionary and for forward compatibility when bug 19986 is
  fixed

Bug: 43027
Bug: 32189
Bug: 16962
Bug: 21915
Change-Id: Iaba783c48c563d52479e0e830e29cacb0cd75d0a
---
M dumpInterwiki.php
1 file changed, 33 insertions(+), 2 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaMaintenance 
refs/changes/99/141099/1

diff --git a/dumpInterwiki.php b/dumpInterwiki.php
index d2d89b7..2285dda 100644
--- a/dumpInterwiki.php
+++ b/dumpInterwiki.php
@@ -84,8 +84,6 @@
        /**
         * Language aliases, usually configured as redirects to the real wiki 
in apache
         * Interlanguage links are made directly to the real wiki
-        * Something horrible happens if you forget to list an alias here, I 
can't
-        *   remember what
         * @var array
         */
        protected static $languageAliases = array(
@@ -93,6 +91,16 @@
                'zh-tw' => 'zh',
                'dk' => 'da',
                'nb' => 'no',
+               'nan' => 'zh-min-nan',
+               'vro' => 'fiu-vro',
+               'cmn' => 'zh',
+               'lzh' => 'zh-classical',
+               'yue' => 'zh-yue',
+               'rup' => 'roa-rup',
+               'gsw' => 'als',
+               'be-tarask' => 'be-x-old',
+               'sgs' => 'bat-smg',
+               'egl' => 'eml',
        );
 
        /**
@@ -141,9 +149,32 @@
         */
        protected function getAdditionalLinks( $project ) {
                switch( $project ) {
+                       case 'wikimedia':
+                               # This list must include all chapter sites 
where the subdomain does not
+                               # match a known ISO language code
+                               return array(
+                                       array( 'bd', $this->urlprotocol . 
'//bd.wikimedia.org/wiki/$1', 1 ),
+                                       array( 'il', $this->urlprotocol . 
'//il.wikimedia.org/wiki/$1', 1 ),
+                                       array( 'mx', $this->urlprotocol . 
'//mx.wikimedia.org/wiki/$1', 1 ),
+                                       array( 'nyc', $this->urlprotocol . 
'//nyc.wikimedia.org/wiki/$1', 1 ),
+                                       array( 'nz', $this->urlprotocol . 
'//nz.wikimedia.org/wiki/$1', 1 ),
+                                       array( 'pa-us', $this->urlprotocol . 
'//pa-us.wikimedia.org/wiki/$1', 1 ),
+                                       array( 'rs', $this->urlprotocol . 
'//rs.wikimedia.org/wiki/$1', 1 ),
+                                       array( 'ua', $this->urlprotocol . 
'//ua.wikimedia.org/wiki/$1', 1 ),
+                               );
+                       case 'wikisource':
+                               return array(
+                                       array( 'mul', $this->urlprotocol . 
'//wikisource.org/wiki/$1', 1 ),
+                               );
+                       case 'wikiversity':
+                               return array(
+                                       array( 'mul', $this->urlprotocol . 
'//beta.wikiversity.org/wiki/$1', 1 ),
+                               );
                        case 'wiki':
                                return array(
                                        array( 'w', $this->urlprotocol . 
'//en.wikipedia.org/wiki/$1', 1 ),
+                                       array( 'completelist', 
$this->urlprotocol . '//meta.wikimedia.org/wiki/$1', 1 ),
+                                       array( 'projectportal', 
$this->urlprotocol . '//www.wikipedia.org/', 1 ),
                                );
                        default:
                                return array();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iaba783c48c563d52479e0e830e29cacb0cd75d0a
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaMaintenance
Gerrit-Branch: master
Gerrit-Owner: TTO <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to