After adding support to access machine translation from the language selector on mobile web (T363183), the "Language not found" view was adjusted to accommodate the new option. As part of this change, the user is no longer getting confirmation from the system about which language(s) are being considered. In this way, if the user types "po" the system may provide options to translate to Polish or Portuguese without the user knowing for sure whether the language they are searching for is considered by the system.
This ticket proposes to include a line of text listing the matching languages below the "Language not available" label. The text would use the color-subtle color from Codex. The logic for obtaining the languages will be the same that was followed originally for showing the translation buttons for each language, but listing them as part of a one line text using ellipsis to crop the comma separated list.
Below there is a comparison between the previous version (with language-specific buttons for translation), the current version (with actions for each activity with no detail on the matching languages) and the proposal (where a non-interactive list of languages is added for reference)
Previous | Current | Proposed |
---|---|---|
Note that this applies only when there are matches for the language the system knows. For cases where the search query is not recognized, the current behaviour still applies. for a comparison below we can see the proposal for different cases:
Multiple languages matched | One language matched | No languages matched |
---|---|---|