3 ms·
But flags almost sometimes map roughly to languages within my limited experience! For example there's only one kind of English and it belongs to the USA. Also S
by Y_Y 2y ago
But flags almost sometimes map roughly to languages within my limited experience! For example there's only one kind of English and it belongs to the USA. Also Spanish, that must be USA too, even if some unimportant countries speak it. Brazil can have Portuguese because I don't know where Angola is. The Indian flag can represent Hindi, but also the 22 scheduled languages, but not the other official language because I already allocated it.
This is going pretty well, but seems tedious, so for all other cases let's just merge ISO 3166-1 alpha-2 and ISO 639-1 as follows:
SELECT
c.code AS common_code,
c.country_name,
l.language_name
FROM iso_3166 c
INNER JOIN iso_639 l
ON c.code = l.code;
And if they don't speak Afrikaans in Afghanistan or Arabic in Argentina then you'll have to take it up with the International Organization for Standardization.
- the_other 2y agoNice. Even Japan (jp) and Japanese (ja) lose out with this.
- toolslive 2y agoSo - for English, I'll use the Jamaican flag. - for Russian, I'll use the flag of South Ossetia. - for German, I'll use the flag of Austria. - for French, I'll use the Malinese Flag. - for Dutch, I'll use flag of Suriname. just see how happy people are with this ;)
- ahoka 2y agoNo, for English you should obviously use the flag of the largest country that uses it as an official language: India.
- toolslive 2y agoCanada?
- riffraff 2y agoTIL Canada is actually larger than India and it's not just a projection artifact!
- marcosdumay 2y agoIn area, yes. But then the China flag would represent a dozen languages. In population, no, the GP is correct.
- Tijdreiziger 2y agoAs a Surinamese Dutch person, I fail to see any issues with this approach. ;)
- culi 2y agoThat's not the only issue. India has over 1,600 native languages and 22 "official" ones. Which language would a country like that represent? What about colonial nations like the US or most of South America. Do the native languages not get a symbol because a colonial history resulted in a foreign language being the dominant one?
- SllX 2y agoDepends. The Navajo Nation and Cherokee Nation both have flags to use that could theoretically be incorporated into Unicode if they didn't draw the line at National flags, but you could always draw flag representations in SVG instead. But I also think this discussion has gone so far into the theoretical it's kind of ignored a very practical point: how many languages do you need to present in your software, because your software is actually localized in that language? Most software isn't going beyond the top two or three recognized languages in a given UN-recognized country (and even some of those are relatively obscure), and countries that have >1 languages usually share an official language with another country that uses it more predominantly. At this point in time, the economies of scale do not favor actually localizing software in 1600 different languages, so we don't. At all. In fact, the usual pattern for developers from Europe and the Americas is to favor their dominant language and localizing in other dominant languages that originated in Europe and some of their more popular variants, and then maybe also some combination of Simplified Chinese, Traditional Chinese, Japanese, Arabic, Hindu, Urdu, and Korean. So when you're presented with a number of languages and variants exceeding 30 in a list, flags probably aren't going to cut it anymore, but there's still some design space to use flags as language representations if you want.
- culi 2y ago> Most software isn't going beyond the top two or three recognized languages in a given UN-recognized country There are over 30 languages in India with at least a million NATIVE speakers. 7 of those are in the top 30 most spoken languages in the world
- Dylan16807 2y ago
- marc_abonce 2y agoSorry for the shameless plug, but I already made a reusable React component for that in case anybody needs it for their business: Npm package: https://www.npmjs.com/package/react-lang-selecta https://www.npmjs.com/package/react-lang-selecta Source code: https://github.com/MarcAbonce/react-lang-selecta https://github.com/MarcAbonce/react-lang-selecta
- Y_Y 2y agoNot sure why you're getting downvoted. Maybe because people don't realize you're in on the joke and that this is a parody package.
- mablopoule 2y agoThat "Features included" selection is golden, the "Every file is called index to turn your code editor into a fun maze for the entire family to enjoy." item actually made me laugh out loud.
- Y_Y 2y agoJoking aside, I have heard of people deliberately doing a sort of inverse version of this. For example, if you live in Barcelona then Ubuntu's installer will detect you as being in Madrid's timezones and wanted to use Spain Spanish locale. If you insist that you're in Andorra you get an equivalent timezone and the Catalan locale (which is the preference for a lot of people, despite the bizarre way of reporting time).
- toolslive 2y agoI do this all the time: - I want proper English, - and Proper SI units, - and Euro as currency. So I put myself in Dublin.
- extraduder_ire 2y agoI've heard this also enables some of the EU-mandated features in newer windows versions. Like being able to uninstall edge.
- harrall 2y agoWe had a good budget for localization at my previous place and had like 10 Englishes and some countries had both their local language and English as options.
- Tijdreiziger 2y agoOh man, international corporations forcing me into the translation of their website is a huge pet peeve of mine, as the translation is usually poor. Just let me choose ‘Netherlands - English’ and I’ll be on my way, please and thanks.
- terinjokes 2y agoStill annoyed I have to patch in en_NL on all my systems because glibc developers don't think it's legitimate.
- immibis 2y ago"I represented some things with wrong symbols and it didn't work well, therefore the idea of using symbols to represent these things is wrong"