Page MenuHomePhabricator

$wgExtraLanguageNames is used for sites instead of languages in WikiVoyage
Closed, ResolvedPublic

Description

In https://gerrit.wikimedia.org/r/#/c/28238 $wgExtraLanguageNames values were added for WikiVoyage.

This $wgExtraLanguageNames global is for languages. Its values are used in various language-related functions, that expect actual languages. Feeding these functions anything else will break things.

The values here look like they are supposed to be served by interwiki prefixes (not interlanguage).


Version: wmf-deployment
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=68815

Details

Reference
bz41209

Event Timeline

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

Is this Bugzilla issue the reason why interwiki prefixes appear as "Language" options on the Special:Preferences page? For example, the first four language choices presented to me include Wikipedia and another wiki link:

<option value="Radreise-Wiki">radreise-Wiki - Radreise-Wiki</option>
<option value="wikipedia">wikipedia - Wikipedia</option>
<option value="aa">aa - Qafár af</option>
<option value="ab">ab - Аҧсшәа</option>

If the language preferences are a separate issue I can file a separate bug, but from the description of this Bugzilla issue it sounds like they might be related.

(In reply to comment #1)

Is this Bugzilla issue the reason why interwiki prefixes appear as "Language"
options on the Special:Preferences page?

Yes.

carlb613 wrote:

I'm wondering if this should be reported as a [[mw:extension:RelatedSites]] bug. The extension pushes specified interwiki links (mostly sibling projects) into the sidebar. The list of interwikis to be listed as "related sites" in the sidebar is a global variable specific to the extension, but the names shown to the user for those wikis seem to be taken from the list of languages (which is a kludge).

Some of these aren't valid interwikis, such as <option value="Radreise-Wiki">radreise-Wiki - Radreise-Wiki</option>, and could be removed from the configuration file on the server. Others (such as wikipedia:) are in extensive, active use. There has to be a better way to do this than listing "Wikipedia" as a language?

Change 148314 had a related patch set uploaded by TTO:
Move RelatedSites config to wgExtraInterlanguageLinkPrefixes

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

Change 148314 merged by jenkins-bot:
Move RelatedSites config to wgExtraInterlanguageLinkPrefixes

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