Conversation

Charlotte 🩝 therian

What’s the preferred order of a language dropdown?

Right now i have it sorted by language code which seems reasonable but some language codes for some smaller languages are kinda weird, so the ordering might be unexpected

Unicode codepoint would have issues with languages that are written in multiple scripts (say, serbian) where the two language variants are split apart due to using different scripts.

Romanization has issues with language (families) which share one or two orthographies but have different pronunciations and romanization schemes. As such stuff like arabic or chinese languages would be split apart in the list, which is probably unexpected.

I could of course group languages and sort with the other two methods but then i wouldn’t know which is the “canonical” language to sort by

55% By language code
11% By unicode codepoint order of the name
22% By romanization of name
0% Unicode codepoint, but with languages grouped
11% By romanization, but with languages grouped
1
2
2

anne_triangle de weledelzeergeleerde Hx Anne C.A. "Joe 'p" Baanen, aggressieve mechanisator en effectieve genderaar

@charlotte i want to vote for whichever scheme Wikipedia uses, and that seems to be by ISO code.

0
0
1

Charlotte 🩝 therian

Edited 2 months ago

oh i just remembered that due to the ravages of mastodon, the 5th option is not visible to mastodon users. If you want to vote for “By romanization, but with languages grouped” you could also just like this post

1
0
2

@dysfun The entries are the language’s name (plus optional region/variant) in that language

0
0
0

@charlotte I recommend "by default Unicode collation algorithm" instead of "by Unicode codepoint."

1
0
1

@dysfun I could add it

0
0
1

‏lol‏ ‏fedifriend (cat aspect)

@charlotte A difficult question.

There's also the option to sort using a language-neutral collation, which puts letters like A Ä Á Å together, making it a bit closer to what people expect than just sorting by code points which may put similar letters far apart.

In any case, I think that the representation which you use for sorting should be visible. I've seen a lot of UIs fail to do this.

1
0
1

@charlotte Wikipedia has got a nice search function which seems to respond to ISO codes, endonyms, and exonyms in ANY language known to Wikipedia. For example, you can be on English Wikipedia, search for ăƒ‰ă‚€ăƒ„èȘž, and get to German Wikipedia that way. But that may be overly complex for your use case.

0
0
1
@krans
didn't realize that this existed since collation order is highly language, region, and sometimes even context specific
1
0
1

@charlotte That's correct. There's a default, generic collation algorithm which is "good enough" in many contexts.

For specific language, region and/or context, the more specific collation is called a "tailored collation".

https://www.unicode.org/reports/tr10/

0
0
1

@charlotte I feel like the answer here is "any option that feels consistent to a lay person", which rules out a lot of options, like code points.

The ones I have always found most usable are the ones that list languages by their English name, and sort it by that as well. I learned the English word for Swedish pretty quickly :)

0
0
0