Page MenuHomePhabricator

Interlanguage links do not work inside labs environment
Closed, DuplicatePublic


When I access a wiki page on the labs environment with interlanguage links, these links are not linking to the language-specific versions of labs, but the real Wikipedias instead.

For example:
has a "Deustch" link that links to

The expected result would be it to link to the labs instance instead:

This is problematic when testing language tools where accessing different language versions of the site are accessed.

Version: unspecified
Severity: enhancement



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:24 AM
bzimport set Reference to bz48299.
bzimport added a subscriber: Unknown Object (MLST).

The rebuildInterwiki.php script in mediawiki/extensions/WikimediaMaintenance would need to be adapted for beta. It is not that hard but definitely time consuming since it has been written for production.

greg lowered the priority of this task from Medium to Lowest.Nov 25 2014, 9:55 PM
greg moved this task from To Triage to Backlog on the Beta-Cluster-Infrastructure board.
greg added a subscriber: greg.
hashar added subscribers: scfc, Se4598, hoo, Reedy.

I have merged this one with T69931: Beta should not use productions interwiki.php which has a bit more details by @Reedy i.e.:

It's probably easiest to just run the script on beta, create it as interwiki-labs.cdb, commit it...

if ( file_exists( "$wmfConfigDir/interwiki.cdb" ) ) {
	$wgInterwikiCache = "$wmfConfigDir/interwiki.cdb";


$iwCacheFile = getRealmSpecificFilename( "$wmfConfigDir/interwiki.cdb" );
if ( file_exists( $iwCacheFile ) ) {
	$wgInterwikiCache = $iwCacheFile;
unset( $iwCacheFile );

Should be trivial

That covers my comment about 'WikimediaMaintenance [..] has been written for production'