User story:
As a Wikidata editor,
I want to find the mul Labels and Aliases at a consistent place in the termbox,
so that I am always able to find it quickly.
Solution:
- Always show mul as the last language in the "In more languages" section.
- It is not relevant if the mul Label or Aliases are empty or not.
- A consistent place is preferable to 'mul' jumping around from entity to entity. We chose the bottom position as it is unproblematic even for non-Latin UI users and entities that should not use mul. Also, it makes the fallback functionality intuitive.
- All Wikibase products will in the future get mul as an option (tmpEnableMulLanguageCode).
- Initially, we will not activate this particular feature in Wikidata either to allow for a soft rollout. So this needs to be configurable via a second (temporary) flag.
Mockup:
Expected fallback:
Notes:
- T336781 solves the same issue for mobile termbox.
BDD:
If mul is NOT specified in the user's Babels:
After the soft rollout, show mul as the last language in the "In more languages" section.
GIVEN a wikibase where mul is enabled
AND the soft rollout phase has successfully ended (=configured for normal use/no soft rollout flag exists)
AND the user has not specified mul in their Babels (OR the Babel extension is disabled)
WHEN editing or viewing an Item on (mobile or) desktop
During the soft rollout, if mul is NOT already used in the entity, do NOT show mul.
GIVEN a wikibase where mul is enabled
AND we are only in the soft rollout phase (=configured for limited rollout)
AND the user has NOT specified mul in their Babels
AND mul is not already used in the entity
WHEN editing or viewing an Item on (mobile or) desktop
THEN do NOT show mul
If mul is already used in an entity, then show mul as the last language in the "In more languages" section. (This case is covered by the general case after the soft rollout.)
GIVEN a wikibase where mul is enabled
AND the user has NOT specified mul in their Babels
AND the Item uses mul
WHEN editing or viewing an Item on (mobile or) desktop
THEN show mul as the last language in the "In more languages" section of termbox
Exception in case mul is specified in the user's Babels:
During the soft rollout, if mul is specified in a user's Babels, show mul as the last language in the "In more languages" section.
GIVEN a wikibase where mul is enabled
AND the Babel extension is enabled
AND the user has specified mul in their Babels
WHEN editing or viewing an Item on (mobile or) desktop
THEN show mul as the last language in the "In more languages" section.
Open questions:
- How can we best test the two configurations for soft rollout (enabled/disabled)?
Acceptance criteria:
- There is a soft rollout flag configurable to change the behavior during soft rollout.
During soft rollout:
- During the soft rollout, if mul is NOT already used in the entity, do NOT show mul.
- Exception: If mul is specified in a user's Babels, then show mul as the last language in the "In more languages" section.
- Exception: If mul is already used in an entity, then show mul as the last language in the "In more languages" section.
After soft rollout:
- After the soft rollout, show mul as the last language in the "In more languages" section.
Release:
- Release to test.wikidata.org