Page MenuHomePhabricator

Missing wiki names for some wikis when adding sitelinks in Wikidata
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Go to an item on wikidata.org without any sitelinks
  • Go to the "Multilingual sites" section and click edit
  • Type the letter "w" in the "wiki" field

What happens?:

Some wikis have the database name (e.g. "wikifunctionswiki") as the wiki name.

English:

Bildschirmfoto_2024-11-23_11-02-20.png (82×206 px, 7 KB)

Japanese:

Bildschirmfoto_2024-11-23_11-04-30.png (83×200 px, 8 KB)

What should have happened instead?:

All wikis in this section should have a proper translatable name (e.g. "Wikifunctions") as the wiki name.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

The missing messages are:

  • wikibase-sitelinks-sitename-foundationwiki
  • wikibase-sitelinks-sitename-outreachwiki
  • wikibase-sitelinks-sitename-specieswiki
  • wikibase-sitelinks-sitename-wikifunctionswiki
  • wikibase-sitelinks-sitename-wikimaniawiki

The messages which do exist seem to be defined in https://gerrit.wikimedia.org/g/mediawiki/extensions/WikimediaMessages/ /master/i18n/wikimedia/en.json

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

There's a few random ones here and there missing too: T379579: Define messages for wikibase-otherprojects-test/wikibase-otherprojects-test2

It would be something that could (in theory) be caught by a structure type test, but would probably need dynamic loading of a dblist (via HTTP) which likely makes it a non starter

Change #1097554 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/WikimediaMessages@master] Wikimedia: Add missing wikibase-sitelinks-sitename- messages

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

Change #1097554 merged by jenkins-bot:

[mediawiki/extensions/WikimediaMessages@master] Wikimedia: Add missing wikibase-sitelinks-sitename- messages

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

Change #1097554 had a related patch set uploaded (by Reedy; author: Reedy):

[mediawiki/extensions/WikimediaMessages@master] Wikimedia: Add missing wikibase-sitelinks-sitename- messages

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

It seems there are now two messages for Wikispecies, "wikibase-sitelinks-sitename-species" and "wikibase-sitelinks-sitename-specieswiki".

The former appears to have been there for a long time, but the message key is wrong (the last part should be the database name), so the interface wasn't finding it.

It has a number of translations already - https://translatewiki.net/wiki/Special:Translations/MediaWiki:Wikibase-sitelinks-sitename-species, could they be moved to the correct message key?