News for hackers. Stuff that matters.
Re:How does the classic Win32 ListView handle incremental se... by Semaphor on Thursday April 11, 2024 @04:56AM (#39999962)
Even setting aside languages spoken in multiple places, please leave the accept language header to languages, not regions. I have en us, because that's the language I want, but I've never been in the US and probably never will.
Re:How does the classic Win32 ListView handle incremental se... by rightbyte on Thursday April 11, 2024 @06:45AM (#40000715)
Ye correct. But the context here is to provide 'top of list' items in a dropdown.

E.g. German would be like 3 countries, unless Austria and Schweiz have their own language code. Uk and US got different codes.

Diaspora languages could just have 0 added top items, etc.

I also have us-en, to avoid these crappy machine translations you get sometimes.

Re:How does the classic Win32 ListView handle incremental se... by skissane on Thursday April 11, 2024 @09:40PM (#40008658)
> German would be like 3 countries, unless Austria and Schweiz have their own language code.

Officially, we have de-DE for German German, de-AT for Austrian German, de-CH for Swiss German, de-LI for Liechtenstein German – Chrome knows all of those. Plain "de" means German of unknown variant/dialect, but statistically is more likely Germany than any other country.

German is also a secondary official language in Belgium (de-BE), Luxembourg (de-LU), Namibia (de-NA), and also in one region of Italy (de-IT), but software awareness of those German variants is less common (Chrome doesn't know about them, but some other software packages do, e.g. ICU and Microsoft .NET).

Re:How does the classic Win32 ListView handle incremental se... by skissane on Thursday April 11, 2024 @09:28PM (#40008606)
> I have en us, because that's the language I want, but I've never been in the US and probably never will.

On my personal laptop, I have en-US, because I don't know why. Maybe it is the default for Chrome?

I have en-AU set on macOS at a system level but Chrome seems to have ignored that.

I just reconfigured Chrome to add en-AU before en-US, so now my Accept-Language header is en-AU,en-US,en

My work laptop has macOS set to en-AU but Chrome set to en-GB. I'm not sure how en-GB happened, possibly something my employer did for whatever reason.