hugolabe / Wike

Wikipedia Reader for the GNOME Desktop
https://hugolabe.github.io/Wike/
GNU General Public License v3.0
252 stars 33 forks source link

Add flags to the language lists #77

Closed vanillajonathan closed 1 year ago

vanillajonathan commented 2 years ago

Flags! 🇺🇦️

image

https://emojipedia.org/flags/

hugolabe commented 2 years ago

I've been playing around with the idea of adding flags, using this set: https://github.com/HatScripts/circle-flags.

wike-flags

I think it's a good option to help find a language at a glance, although it does present some difficulties.

There are no flags for all Wikipedia languages. One option would be to put only the most important languages and use a generic icon for the rest. They could be added later.

The flags do not have a direct correspondence with the languages, but with countries or regions and in many cases there are many countries that use the same language.

In some cases the choice seems obvious: UK for English or Spain for Spanish, since they are the original territories of that language. In others it is not so clear: which flag to choose for the Arab?

There are also countries that have several languages: traditional Chinese, simplified Chinese... Should we use the same flag?

vanillajonathan commented 2 years ago

There are also flag icons available in Unicode so you can use the font. But it may not be available on all fonts depending on what font is in use. Maybe it is possible to specify a font just for the flag but not for the text that overrides the system font to ensure a font that supports Unicode flag emojis are in use.

You do raise some interesting points, and the idea of using a generic flag for the rest sounds reasonable there are enough languages that has a suitable country icon for it to be a usability benefit that covers most languages for most people. If there are just a few languages without a suitable font then that might not be a big issue.

I do not like the circle icons, I would much prefer rectangular icons that are more reminiscent of actual flags.

In the Duolingo app they have country icons for their language course selection. https://happilyevertravels.com/wp-content/uploads/2020/10/IMG_0603-576x1024.png.webp

nekohayo commented 1 year ago

Possibly a dangerous idea. Not only does this not necessarily have a match with geographic location, but flags are also politically charged, especially with independance-seeking regions (like Catalonia, Scotland, Québec vs Canada vs France, etc.). I think this is the reason why GNOME Settings and most installers don't sport any flags anywhere.

hugolabe commented 1 year ago

Possibly a dangerous idea. Not only does this not necessarily have a match with geographic location, but flags are also politically charged, especially with independance-seeking regions (like Catalonia, Scotland, Québec vs Canada vs France, etc.). I think this is the reason why GNOME Settings and most installers don't sport any flags anywhere.

In general I agree with what you say, and I'm still not sure about implementing this feature. On the other hand, it makes it quite easy to find a language in the list.

One option could be to allow to disable the flags via an option in preferences, for those who don't want to use them.