Page MenuHomePhabricator

Enable variant aliases for zh WMF projects
Closed, ResolvedPublic



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 :
zh-hant=zh-tw :

Version: unspecified
Severity: enhancement



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 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.