Page MenuHomePhabricator

Special:NewLexeme and wbcontentlanguages in the API do not use the same language names for additional languages
Open, Needs TriagePublicBUG REPORT

Description

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

What happens?:

The names do not match.

The API is missing nn-hognorsk, Special:NewLexeme is missing nr, they have the same value for non and different values for non-runr.

What should have happened instead?:

The names should match.

Software version (skip for WMF-hosted wikis like Wikipedia):

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

Screenshot of Special:NewLexeme:

Bildschirmfoto_2022-11-01_15-18-32.png (149×362 px, 13 KB)

Screenshot of the API response:

Bildschirmfoto_2022-11-01_15-18-55.png (364×388 px, 31 KB)

Event Timeline

Change 970765 had a related patch set uploaded (by Nikki; author: Nikki):

[mediawiki/extensions/WikibaseLexeme@master] Update language names to be consistent with the names used elsewhere in MediaWiki

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

Some of these have since been fixed, but it still affects non-runr, and others I hadn't mentioned like sat-latn. Making the names completely consistent will also mean changing mis, which currently shows "unsupported language" in most places, but "other" on Special:NewLexeme.

Change 970765 merged by jenkins-bot:

[mediawiki/extensions/WikibaseLexeme@master] Update language names to be consistent with the names used elsewhere in MediaWiki

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

This makes me wonder, how did this came to be that these language names are maintained in multiple places, or is it even intentional?

I just discovered that WikibaseLexeme inlcudes translatable language names, after having translated most of the same local name overrides in CLDR extension.

It appears that Special:NewLexeme already uses local name overrides from CLDR extension anyway. I realise that ones in CLDR extension are not translateable via translatewiki but wouldn't it be better to add translatewiki support over there?