Page MenuHomePhabricator

Enable variant aliases for zh WMF projects
Closed, ResolvedPublic

Description

see http://bugzilla.wikimedia.org/show_bug.cgi?id=7860

Please enable variant aliases for zh.wikisource.

Aliases to be set:
Alias /zh-hans <path to index.php>
Alias /zh-hant <path to index.php>

zh-hans=zh-cn : http://zh.wikisource.org/zh-hans/
zh-hant=zh-tw : http://zh.wikisource.org/zh-hant/
zh: http://zh.wikisource.org/wiki/


Version: unspecified
Severity: enhancement
URL: http://zh.wikisource.org

Details

Reference
bz8532

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:29 PM
bzimport set Reference to bz8532.

That means is to insert the following into the $wgConf->settings array:

'wgVariantArticlePath' => array(

'zhwikisource' => '/$2/$1',

),

Rob, compare with the setup on sr.wikipedia.org. Need to stick in the appropriate Aliases in the apache config, I think.

I think this changes can also apply to all Chinese Wikimedia projects too.

'wgVariantArticlePath' => array(

'zhwiki' => '/$2/$1',
'zhwiktionary' => '/$2/$1',
'zhwikisource' => '/$2/$1',
'zhwikibooks' => '/$2/$1',
'zhwikiquote' => '/$2/$1',
'zhwikinews' => '/$2/$1',
'zhwikiversity' => '/$2/$1',

),

I have set the aliases in the main.conf of the apache config files. I have also set the wgVariantArticlePath in InitiliseSettings.php to allow the project to use them.

The changes have been pushed and both Fred and I are looking, yet it does not seem to be functioning properly. Just updating the ticket with progress as we go.