Page MenuHomePhabricator

Apply $wgDisabledVariants on Chinese Wikis
Closed, ResolvedPublic

Description

Author: PhiLiP.NPC

Description:
Please help to set a new global variable for Chinese wikis, to disabled some variants that won't used. They are:

  1. For zh.wikipedia, zh.wikinews, zh.wikibooks and zh.wikiquote:

    $wgDisabledVariants = array('zh-mo', 'zh-my');
  1. For zh.wiktionary and zh.wikisource:

    $wgDisabledVariants = array('zh-mo', 'zh-my');

P.S. This new function to disabled variants has been applies on wmf at r57448.

And please someone who has access privileges of shell take a look at bug:19019. It's been a long time that Chinese wikis (except Wikipedia) can't been accessed if you logout. You just need to add these new aliases to apache's httpd.conf file to allow accessing:

http://zh.wikipedia.org/zh/
http://zh.wikisource.org/zh/
http://zh.wiktionary.org/zh/
http://zh.wikinews.org/zh/
http://zh.wikinews.org/zh-hans/
http://zh.wikinews.org/zh-hant/
http://zh.wikinews.org/zh-cn/
http://zh.wikinews.org/zh-hk/
http://zh.wikinews.org/zh-sg/
http://zh.wikinews.org/zh-tw/
http://zh.wikibooks.org/zh/
http://zh.wikibooks.org/zh-hans/
http://zh.wikibooks.org/zh-hant/
http://zh.wikibooks.org/zh-cn/
http://zh.wikibooks.org/zh-hk/
http://zh.wikibooks.org/zh-sg/
http://zh.wikibooks.org/zh-tw/
http://zh.wikiquote.org/zh/
http://zh.wikiquote.org/zh-hans/
http://zh.wikiquote.org/zh-hant/
http://zh.wikiquote.org/zh-cn/
http://zh.wikiquote.org/zh-hk/
http://zh.wikiquote.org/zh-sg/
http://zh.wikiquote.org/zh-tw/

Version: unspecified
Severity: normal

Details

Reference
bz21389

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:48 PM
bzimport set Reference to bz21389.

PhiLiP.NPC wrote:

correction:

  1. For zh.wiktionary and zh.wikisource:

    $wgDisabledVariants = array('zh-cn', 'zh-hk', 'zh-mo', 'zh-my', 'zh-sg', 'zh-tw');

Note the remaining issues w/ bug 19019 configuration have been worked out; only the wgDisabledVariants settings need to be treated here.