Page MenuHomePhabricator

Use a dash instead of angle brackets when autocompleting ISO codes on the language selector
Closed, ResolvedPublic

Description

Autocompletion in the language selector normally continues the text written by the user. However, in some cases such as ISO codes, the input from the user is not a prefix of the autocompletion text (e.g., the user types "pt" for "portuguese"). In such cases angle brackets are used, as shown below:

pt-brackets.png (795×1 px, 134 KB)

Angle brackets don't look very natural in this context, and parenthesis cannot be used since some languages already use them in their name.
Instead of angle brackets we can use an em dash (—) as a separator for the suggestion instead.
It reads more naturally and looks less like software code, as illustrated below.

pt-dash.png (834×1 px, 142 KB)

Event Timeline

Arrbee triaged this task as Medium priority.Feb 6 2018, 10:24 AM

Change 408546 had a related patch set uploaded (by Nikerabbit; owner: Nikerabbit):
[mediawiki/extensions/UniversalLanguageSelector@master] Use dash as separator for non-prefix matches in language name search

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

Change 408546 merged by jenkins-bot:
[mediawiki/extensions/UniversalLanguageSelector@master] Use dash as separator for non-prefix matches in language name search

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

Amire80 moved this task from QA to Done on the Language-2018-Jan-Mar board.
Amire80 subscribed.

Tested in production. Thanks!