With recent [[ https://www.mediawiki.org/wiki/Reading/Web/Desktop_Improvements | desktop improvements ]] the language selector is provided in a new place,. The language selector will become the main entry point for activities (T289840) such as translation, language settings, and connecting interlanguage links in Wikidata.
This ticket proposes to improve the empty states of the current selector in order to (a) support the case where the content is not available in other languages (users may still need to access the selector to translate it or connect it to another article in Wikidata), and (b) surface options to translate where the user searches for a missing language (similar to the mobile update in T286645).
Currently when searching for a language not available, this is the current empty state:
{F34634536, size=full}
The proposed empty states will use the following structure:
- **Title**
- **Description**
- **(Optional) Actions** represented by an icon and (optionally) a label. Up to three actions are shown.
The proposed empty states are described below for both cases mentioned.
# No initial languages
When the list of languages is empty because no options are available at all, the empty state is used. with additional language options listed below (if available). Options will be different depending on whether options to add languages to the list are available (i.e., Options will be different depending on whether Content Translation is available (itranslate with Content Translation or edit Wikidata links) which can be different in different wikis (i.e., on Wikipedias vs. other projects):
|Options to translate iadd languages available| Option to translate is notnly language settings available| No options available|
|---|---|---|
|{F323854324648628, size=full}|{F323854254648630, size=full}|
!!Pending: Illustrate how this is combined with additional language options (e.g., edit links)!!{F34648632, size=full}|
# Searching a language that does not exist or content is not available
When the user searches for a language that does not exist or the content is not available, an empty state will be shown. For the cases where Content translation can be used, options to translate will be surfaced.
|Language not available with option to translate| Language not available (without option to translate) or not existing|
|---|---|
|{F32385542, size=full}|{F32385526, size=full}|
Note that the user search query can result in multiple unavailable languages (e.g., searching for "esp" could lead to this empty state if content is not available for both "español" and "esperanto"), so the generic version of the message does not mention a specific language. For cases where the search query identifies only one language, the title message would include it (e.g., " Esperanto not available").
# Additional design details
{F32385569, size=50%}
___
These designs are based on the equivalent ticket for the new language selector (T265585)