With recent desktop improvements the language selector is provided in a new place at the top of the page. This leaves no place for the current grey interlanguage links that Content Translation adds. These are useful to signal relevant missing languages for the user where the content is missing and they can start translating.
This ticket proposes to add an indicator inside the current language selector to surface these relevant languages for which the content is missing.
The general elements of this feature include:
- A message mentioning affected languages is shown in an area on top of the list of languages.
- A separate panel provides additional information for the action.
The message( "Missing in X, Y and more") will be shown when there are some suggested languages for the user where the content is not available. These languages will be provided in the follow-up panel to start a translation with Content Translation (plus an additional option to pick a different one).
|Action area on top of the language list||Panel with additional details|
Translate this page
This page is missing in some languages you may know. You can translate it in minutes!
Additional design details
- The message will be shown only on Wikipedias where Content Translation is enabled. We should not show an invite leading to a tool that is not available for that wiki or user.
- Suggested languages will follow stricter version of the criteria used for compact language links considering only the top 4 criteria y priority when selecting languages:
- The languages on which the user clicked in the language selector panel previously.
- The languages of your web browser. This is configurable by you.
- The languages defined in your Babel box.
- Geographic information,
- Only the name of at most 2 languages will be surfaced, for which content is not available in these. The same languages will be listed in the second panel.
- If there is only one language selected as per the above, the following message will be shown instead "Missing in X and more". The "and more" part refers to the other languages the content is missing even if they are not relevant for the user.
- The message is not sticky or floating (it just scrolls up with the language list) and it is not shown in the results while searching. In this way users can focus on language selection if they are not interested in the action.
- Background: Base90 (#f8f9fa)
- Text: 14px Base20 (#54595d)