Some languages in UploadWizard's dropdown list are displayed twice. This seems to be caused by the backwards-compatibility language codes that we have.
- Aromanian (rup and roa-rup)
- Samogitian (sgs and bat-smg)
matmarex | |
Aug 1 2017, 8:45 PM |
F8926649: crh.png | |
Aug 1 2017, 9:16 PM |
F8926469: image.png | |
Aug 1 2017, 8:45 PM |
Some languages in UploadWizard's dropdown list are displayed twice. This seems to be caused by the backwards-compatibility language codes that we have.
The same is for "Belarusian (Tarashkievica)" (one is displayed in belarussian and other in english)
Also take a look at Crimean Tatar language. I think "Crimean Tatar" and "Crimean Turkish" are the same.
short term fix:
e.g. (RUP) Aromanian | (ROA-RUP) Aromanian
prefix because of possibility of truncation.
long term solution
I think in this case it would be more appropriate to just remove one of the entries – in all of the cases we've seen so far, one of the two codes is deprecated and it's wrong to use it.
If we end up doing this later, be careful with the prefix – it would mess with the sorting order of the list, and it would make it more difficult to type-to-search in the long list.
Change 370874 had a related patch set uploaded (by Bartosz Dziewoński; owner: Bartosz Dziewoński):
[mediawiki/extensions/UploadWizard@master] Skip duplicate deprecated language codes in the language dropdown
"Crimean Tatar" and "Crimean Turkish" are two names for a single language, but in this case, there is a difference – the two entries are:
'crh-cyrl' => 'Crimean Turkish (Cyrillic script)', 'crh-latn' => 'Crimean Turkish (Latin script)',
It seems that only one of them has a name in Ukrainian, so it's more confusing (see T172219).
in all of the cases we've seen so far, one of the two codes is deprecated and it's wrong to use it.
if this is true, then we should remove it as you suggested
Change 370874 merged by jenkins-bot:
[mediawiki/extensions/UploadWizard@master] Skip duplicate deprecated language codes in the language dropdown