zlacker

[parent] [thread] 20 comments
1. melx+(OP)[view] [source] 2023-09-19 08:56:20
Kudos on the nice UX for dropdown with countries. I wish more websites do it. Usually, it's "United States" at the very top, and 194 other countries in a loooooong list.
replies(5): >>lucb1e+o >>gumbal+I >>nicbou+L >>TheHap+f5 >>sagarm+Ye8
2. lucb1e+o[view] [source] 2023-09-19 09:00:45
>>melx+(OP)
That's... exactly what this is as well? Are you getting a different UI that I'm not?
replies(1): >>mkreis+P
3. gumbal+I[view] [source] 2023-09-19 09:03:29
>>melx+(OP)
Oddly enough it doesn't list countries where most people are likely to come from right at the top. That makes it ill designed still.
replies(2): >>melx+b1 >>martin+z1
4. nicbou+L[view] [source] 2023-09-19 09:04:11
>>melx+(OP)
I use navigator.languages to guess the user's possible countries. It's not perfect, but the cost of guessing wrong is low. I've used the same technique to show currency conversion tooltips in the content.
◧◩
5. mkreis+P[view] [source] [discussion] 2023-09-19 09:04:26
>>lucb1e+o
If you have different browser language settings, then yes, you are getting a different UI.
replies(2): >>melx+l1 >>lucb1e+0z
◧◩
6. melx+b1[view] [source] [discussion] 2023-09-19 09:07:02
>>gumbal+I
The OP wrote this is based on "navigator.languages" feature in the visitor's browser. So if your preferred language is set to e.g. French, then you shall see France at the top of dropdown.
replies(1): >>hk__2+Z2
◧◩◪
7. melx+l1[view] [source] [discussion] 2023-09-19 09:08:04
>>mkreis+P
I'm from UK, and I got "United Kingdom, United States, Germany" as three first countries.
◧◩
8. martin+z1[view] [source] [discussion] 2023-09-19 09:09:52
>>gumbal+I
I think this has been taken care of:

> I use navigator.languages to get a list of supported languages. For example, en-CA, fr-CA, de-DE. This gives me a list of countries the user might have lived in. I suggest those countries at the top of the country list.

replies(1): >>layer8+c3
◧◩◪
9. hk__2+Z2[view] [source] [discussion] 2023-09-19 09:19:55
>>melx+b1
> So if your preferred language is set to e.g. French, then you shall see France at the top of dropdown.

If it’s French from France, yes. This is the second part of the language code: fr_FR is French from France, fr_BE from Belgium, fr_BF from Burkina Faso and so on.

replies(1): >>melx+28
◧◩◪
10. layer8+c3[view] [source] [discussion] 2023-09-19 09:21:14
>>martin+z1
Not for people like me who always set their browser language to en-us (or just “en”) because they mostly peruse the internet in English.
replies(1): >>nicbou+9e
11. TheHap+f5[view] [source] 2023-09-19 09:46:19
>>melx+(OP)
Even better are the ones where you pick your country and the 'state' dropdown is still US states and 'Other', and you're prompted for a 'zip code'. What does American mail have to do with a zip anyway?
replies(2): >>kelnos+dd >>helboi+aJ3
◧◩◪◨
12. melx+28[view] [source] [discussion] 2023-09-19 10:09:41
>>hk__2+Z2
Good point! But what... if it's French Belgian person from France... is this still "French from France", or "French from Belgium" ? The Belgian person lives in France ;-)

Also, you missed other language codes for French: fr_BI, fr_BJ, fr_BL, fr_CA, fr_CD, fr_CF, fr_CG, fr_CH, fr_CI, fr_CM, fr_DJ, fr_DZ, fr_GA, fr_GF, fr_GN, fr_GP, fr_GQ, fr_HT, fr_KM, fr_LU, fr_MA, fr_MC, fr_MF, fr_MG, fr_ML, fr_MQ, fr_MR, fr_MU, fr_NC, fr_NE, fr_PF, fr_PM, fr_RE, fr_RW, fr_SC, fr_SN, fr_SY, fr_TD, fr_TG, fr_TN, fr_VU, fr_WF, fr_YT.

replies(2): >>nicbou+ie >>hk__2+rS
◧◩
13. kelnos+dd[view] [source] [discussion] 2023-09-19 10:44:18
>>TheHap+f5
Not sure if your question is flippant/rhetorical, but in case you're genuinely curious: ZIP stands for Zone Improvement Plan, the initiative that set up the "postal codes" that we call ZIP codes.

I don't quite recall, but I think ZIP may actually be a backronym; in US English, "zip" is a word that also means "to move quickly", and they wanted to evoke a feeling that postal mail gets delivered faster when you include the ZIP code, which makes sorting mail more efficient.

replies(1): >>TheHap+k33
◧◩◪◨
14. nicbou+9e[view] [source] [discussion] 2023-09-19 10:49:19
>>layer8+c3
Then you'll have to press one or two extra keys on your keyboard.
replies(1): >>lucb1e+hy
◧◩◪◨⬒
15. nicbou+ie[view] [source] [discussion] 2023-09-19 10:50:19
>>melx+28
As an official policy, I do not recognise the existence of Belgium.

However I am Canadian and I speak French. It will recognise fr-CA as "Canada".

◧◩◪◨⬒
16. lucb1e+hy[view] [source] [discussion] 2023-09-19 12:59:22
>>nicbou+9e
Yep, as a techie I don't see the problem either, but the person who started this subthread apparently minds that

> Usually [you get] 194 other countries in a loooooong list

(cue this website having precisely that list)

◧◩◪
17. lucb1e+0z[view] [source] [discussion] 2023-09-19 13:03:43
>>mkreis+P
It still shows the "194 other countries" in a long list, which is what the person complained about. (I don't mind that btw, but the logic of the person who said that this UX is different escapes me)
◧◩◪◨⬒
18. hk__2+rS[view] [source] [discussion] 2023-09-19 14:34:37
>>melx+28
> But what... if it's French Belgian person from France... is this still "French from France", or "French from Belgium" ? The Belgian person lives in France ;-)

This is accessory; the goal is to suggest relevant options for someone based on the language they configured their browser with.

> Also, you missed other language codes for French: […]

These are combinations of a language code (fr) and a region code; the list is not standardized and could theorically be extended to all the regions with an ISO code. What’s interesting here is the region code, not the language.

◧◩◪
19. TheHap+k33[view] [source] [discussion] 2023-09-20 00:23:46
>>kelnos+dd
Hey thanks, I was being a bit flippant, but I was not aware of that. That's very interesting!
◧◩
20. helboi+aJ3[view] [source] [discussion] 2023-09-20 07:45:54
>>TheHap+f5
Ooo yes there's nothing I hate more than an address form for a business that clearly works internationally being only really compatible with US addresses. My "state"? At least Germany or something has states the UK does not. My "city"? In the UK cities and towns are distinct and I am from a town. I have very occasionally actually then not been able to proceed because someone has not actually configured the "zip code" field to accept postal codes that include letters.
21. sagarm+Ye8[view] [source] 2023-09-21 15:14:40
>>melx+(OP)
You know you can type the first few letters of the entry you're looking for while the drop-down is open right?
[go to top]