Page MenuHomePhabricator

Show the language name in monolingual text value's suggester
Closed, ResolvedPublic

Description

As an editor I want to enter values for Properties with datatype monolingual text by language name in order to record complete data.

Problem:
The language suggester for monolingual text does not show language names in its dropdown. However, this could be saved by using the language code. This is confusing for users.

Example:
We cannot store statements for monolingual text values with some language names.
e.g. language names - Afar, Choctaw, Dagbani, Latin American Spanish, Hiri motu, Herero, Ndonga, Rundi, Tachelhit, Uzbek (Cyrillic script), Uzbek (Latin)...
Their respective language code - aa, cho, dag, es-419, ho, hz, ng, rn, shi-latn, uz-cyrl, uz-latn, etc

Screenshots/mockups:

image.png (119×418 px, 10 KB)

image.png (111×447 px, 11 KB)

BDD
GIVEN a special language
WHEN entering a monolingual text value
AND entering the special language name in the language field
THEN it is recognized
AND shows up in the suggester

Acceptance criteria:

  • all accepted language names show up in the dropdown for monolingual text values

Event Timeline

amy_rc renamed this task from [Story] Show the language name in monolingual text value's suggester to Show the language name in monolingual text value's suggester.Feb 25 2021, 3:06 PM

Change 833398 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/Wikibase@master] Use wb.getLanguageNameByCode() in WikibaseContentLanguages

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

Change 833398 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] Use wb.getLanguageNameByCode() in WikibaseContentLanguages

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

Pulling this into the sprint verification, since it should have been fixed by the above change (as part of work on T311626).

Manuel claimed this task.
Manuel subscribed.

\o/