News for hackers. Stuff that matters.
Re:Open-Sourcing our Firmware by ignaloidas on Friday January 21, 2022 @01:07PM (#30027438)
Side note: the language selection is stupid on the website. No, I'm not from Germany, and I don't speak German even if it's the closest country to me that you sell laptops in. Also, it's a bad practice to associate flags with languages. Or to give options that don't work after you select them.

Otherwise, very nice news!

Re:Open-Sourcing our Firmware by Beltalowda on Friday January 21, 2022 @01:27PM (#30027824)
They don't have a language selector, they have a region selector which sets the appropriate currency, VAT (presumably), and also language, yes. It's an entirely appropriate usage of flags.
Re:Open-Sourcing our Firmware by 3np on Friday January 21, 2022 @02:49PM (#30029010)
It is not. I can be present in Germany and want my laptop delivered there. That does not mean I speak a word of German.

Language and physical location are disjoint. Even worse when I know the original content is in English, my preferred language, but someone decides I only deserve the partial translation.

Re:Open-Sourcing our Firmware by schleck8 on Friday January 21, 2022 @03:14PM (#30029346)
You can switch the region then, it takes 3 seconds and persists across visits.
Re:Open-Sourcing our Firmware by 3np on Friday January 21, 2022 @03:22PM (#30029457)
Sure, and now I can not select shipping destination "Germany" anymore, as somehow it's an impossibility to match the existing language contents and shipping destinations...

This is such a frustrating trend. Google has already been mentioned as an offender - it is an annoying procedure to keep resetting the language for every fresh session - but at least their texts are mostly properly translated... Going to the Amazon site of my country (a smaller one where I am a native speaker of the language and most but not all products listing are machine-translated), I have to constantly change my language preferences to get the non-machine-translated version of various texts, as "prefer original language" doesn't seem to be a thing. Some things are just so hilariously wrong that doing this is the only way to make sense of everything.

Oh, and they (framework) also force the currency tied to the nation. My credit card is not necessarily in the native currency of either my shipping destination or my preferred language. Just let us set all three independently, please :/

aliexpress and iherb are two sites that do this right.

Re:Open-Sourcing our Firmware by redthrow on Friday January 21, 2022 @02:06PM (#30028398)
> Also, it's a bad practice to associate flags with languages

There's even a website for this issue

http://www.flagsarenotlanguages.com/blog/why-flags-do-not-re...

Re:Open-Sourcing our Firmware by zild3d on Friday January 21, 2022 @02:19PM (#30028606)
Don't think the site is going against these. It says "Choose Location and Language" and offers for example:

- :us-flag: United States [USD]

- :ca-flag: Canada (English) [CAD]

Re:Open-Sourcing our Firmware by kilburn on Friday January 21, 2022 @03:20PM (#30029427)
The issue there is that "being in country X" and "wanting to see the site in language Y" is going to be against some users' preferences. Examples:

- Canadians from Quebec may prefer the site in french (but use CAD as a currency and see Canada's taxes where relevant).

- Expats in Thailand very much prefer to use the site in English.

- I'm in Spain and my browser is setup to reflect my preferences (Catalan first, English if that's not available, Spanish last). I prefer English to Spanish because international companies either have a strong presence here (and will probably have Catalan as an option) or their Spanish translation will be worse than the original language in English which I understand better than low effort translations.

Frame.work is going for a locale selector but they don't even support all the official locales of the regions they already operate in (e.g.: they don't support fr_CA). Even if they did, there are always users that would prefer a "non-official" localization (en_TH, en_ES following my examples above).

In the end they would be much better off letting users pick the language, region and currency separately. It's less effort from their part and a better solution for the users.

In that case, flags for languages are bad and flags for regions are fine but can still rub against some users' feelings. Example: pro-independence Scots having to pick the UK flag. Is it really that terrible to have auto-complete and/or select fields for these 3 things?

Re:Open-Sourcing our Firmware by kstenerud on Friday January 21, 2022 @03:01PM (#30029181)
What it should offer is two separate options: One for the store location, one for the language. This becomes especially important in Europe because you have so many people who live in a country where they don't speak the associated language natively.

This is such a basic UX rule that I'm a bit surprised to see them fumble on it...

Re:Open-Sourcing our Firmware by laputan_machine on Friday January 21, 2022 @03:13PM (#30029330)
Disagree, examples in the blog are poo. English comes from... England... why shouldn't be represented with an English flag? Spainish comes from... Spain... why shouldn't be represented with a Spanish flag? There are Spanish speakers in literally every country in the world, what is the solution?

The Hindi argument is not good, Hindi is the _official_ language of India. I work with people from various parts of India and they can all communicate with each other because thry all speak Hindu/English (usually a mixture in conversation), even if their main language is Malayalam.

There are issues with flags = languages (e.g. "Welsh": "Gaelic" for instance, or Switzerland (which one?), but for English/Spanish examples, they are not good ones to use

And to end this, just because there is a website for your issues doesn't mean it's correct. There is nothing preventing someone from making a website called flagsarelanguages.com and having poo counter points to the original websites poo arguments. Appeal to authority nonsense.

Re:Open-Sourcing our Firmware by polar on Friday January 21, 2022 @03:27PM (#30029531)
> Hindu is the _official_ language of India

Hindi, not Hindu. Also, Hindi is not the only official language of India.

Re:Open-Sourcing our Firmware by laputan_machine on Friday January 21, 2022 @03:33PM (#30029618)
Thanks! It was a typo, I've corrected it
Re:Open-Sourcing our Firmware by schleck8 on Friday January 21, 2022 @03:12PM (#30029318)
Do you have an alternative iconography for language selection? It undoubtedly makes the UX better, especially with many languages
Re:Open-Sourcing our Firmware by kingcharles on Friday January 21, 2022 @01:10PM (#30027491)
I agree that flag != language (British Union flag for English being a prime example), but what is the next best alternative?
Re:Open-Sourcing our Firmware by brightball on Friday January 21, 2022 @01:23PM (#30027749)
Yea, it’s always a struggle. UI wise it clearly looks better to use flags and people know what it’s for when they see it. There’s always people who complain about it though.

I’m of the opinion to not worry about it and just use the flags. It’s enough effort to properly internationalize a site and keep it maintained. That it’s available at all is a huge effort. Debating flags vs a drop down with languages is nitpicking IMO.

Plus, when the language codes include a country it’s a natural UI decision.

EDIT: Supporting multiple languages increases the complexity of the entire development pipeline. Translation teams are brought in, translation tools are brought in to support in-code language as well as translations in the database itself. Every new text snippet needs to be translated to each language to deploy it.

Your search features get more complicated, date formats, number formats, currency, collations. Every language you add increases this complexity. Because of that, you will represent a language with a primary country and not every language spoken in that country. On the chance that a company has opted to go all in to support region specific dialects of languages where 100+ choices will be listed, then no…of course flags wouldn’t work. But in most cases you’re lucky to get 2 languages at all with potential for a couple more for all but the largest of companies. Virtually every other site is just going to use one and churn out some Google translations or ask you to do that yourself.

After considering all that, yes…just use flags.

Re:Open-Sourcing our Firmware by galgalesh on Friday January 21, 2022 @01:49PM (#30028142)
Yeah, just use flags and confuse the fuck out of multilingual countries. Belgium has Dutch, German and French as official languages. So what would a Belgian flag mean? What flag should I choose?

If I choose the flag from the Netherlands to get Dutch, I'll probably be confused by a whole bunch of terminology since the dutch of different countries differs vastly more than the English from different countries.

"People who complain about flags are nitpickers" is a perfect way to say "I grew up in a gigantic monoculture where you can drive 5 hours in any direction without encountering a different language, if you ignore the natives"

Re:Open-Sourcing our Firmware by brightball on Friday January 21, 2022 @02:05PM (#30028382)
If Dutch, German and French were supported languages on the site I imagine that flags of the Netherlands, Germany and France would be representing the language selection.

As a US citizen I often visit sites that use a British flag to represent English. I don’t bristle because there’s not a US flag or question whether the US flag should also be referencing Spanish.

It’s just a detail to draw your eye that otherwise holds no importance once that is accomplished.

Re:Open-Sourcing our Firmware by kmorgh on Friday January 21, 2022 @02:48PM (#30029007)
Except Belgian "Dutch" is called Flemish. And is different enough from the other Dutch to warrant its own i18n.

Belgium is an exceptional case but I'm sure you can find more.

Re:Open-Sourcing our Firmware by galgalesh on Friday January 21, 2022 @08:35PM (#30032243)
As an example: "weerhouden" in Flemish means "to be included", while in Netherlands' Dutch it means "to be excluded".

Or take "poepen" which means "to have sex" or "to take a shit" depending on which country you are in.

I frequently have to ask my friends from the Netherlands to clarify something because, even though I hear which word they're using, I have no idea what they mean because the words mean something different or are just never used that way in Flemish.

Re:Open-Sourcing our Firmware by Insanity on Friday January 21, 2022 @01:58PM (#30028280)
Can't say I recall a moment of really being confused by the terminology used in NL vs BE. But I do agree, a Belgian flag means nothing in terms of language. The flag can be used but only as a prefix to the actual language in text (to visually filter quickly).
Re:Open-Sourcing our Firmware by dheera on Friday January 21, 2022 @02:03PM (#30028357)
With flags you also have the issue of how to represent politically disputed regions e.g. Taiwan even when the languages used locally are pretty clear-cut.

In the specific case of Taiwan, if you want to maintain good business relations with normal civilians on both sides of the straits you need to represent Taiwan as a state to Mainland China IPs and represent it as a country to Taiwanese IPs and most of the rest of the world.

I'm not advocating any particular political view, this is just the technological fuss you have to go through to maximize the number of happy customers. So sometimes it's much easier to just forget the flags, state the language and currency directly as text, and skirt around these issues.

As for language selection, I really don't think it's necessary to beautify it UI-wise. Pick based on the user's Accept-Language header and 99.99% of the time you'll present it exactly as the user wanted without them having to select anything. You can then implement a text-only language selector somewhere in a less conspicuous place, such as the footer, than polluting your navigation header.

Re:Open-Sourcing our Firmware by anyfoo on Friday January 21, 2022 @03:34PM (#30029630)
As someone who grew up multilingually in Europe but now lives in the US and works for a US company (which seems to get localization right), I have the impression you don't really know the confusion and difficulties that arise from what you are saying.

To explain, let's turn it around. Assuming you also live in the US, imagine a EU company would make the following assumptions that are common (to the point of feeling entirely "natural") in lots of European countries, but wrong in the US, and think about how that could impede you in varying business situations:

* There is only one time zone in a given country.

* VAT and other sales taxes are the same over the whole country (and therefore just included in the display price).

* Every debit card, credit card etc. has a PIN, and a common API to the bank for card/bank-specific verification.

* Every bank account is identified by IBAN, even across countries. Wiring money is always free.

* Decimal separator is universally "," and grouping is ".". (Bonus: Let's instead be in an Asian country where it's common to group digits by 4 instead of 3.)

* Dates are always either in order "DD MM YYYY" or ISO YYYY-MM-DD. In the case the year is omitted, "DD MM" is assumed and no clarification is ever made. Your appointment is 4.5., thanks for doing business with us! Sincerely yours, [email protected].

* Car-related business: You have to be at least 18 to drive a car (and have spent the equivalent of thousands of dollars and many hours of mandatory theoretical and practical training). It is illegal to drive a car more than 2 years without a thorough inspection that forces you to fix even minor things (Autobahn speeds are dangerous), so old cars are uncommon. There are special enthusiast registrations for so called "oldtimers", but that still requires extra maintenance.

* Gastronomy-related: But you're allowed to drink beer at 16 (was at least the case when I was that age), anything else 18.

* You have to use/publish your real name, address, and other information mandatorily in a lot more situations (e.g. when hosting a website of any kind--imagine a business enforcing that for all customers).

You may find that if you want to do business internationally at all, you have to start caring about those things.

Re:Open-Sourcing our Firmware by brightball on Saturday January 22, 2022 @10:46AM (#30037622)
I’m very familiar with it after working for a company which does a tremendous amount of business in Europe. Our European office, based in the Netherlands, just wanted to use some Google translate proxy service rather than properly internationalize anything.

If anything, I cared a lot more about getting it right than anyone else but it is a lot of work.

My point is that with all of the work a company has to put in to even make a proper language choice available, complaining about flags is literally just finding a reason to be bothered.

It’s like somebody built you a house just how you wanted it, but you latched onto the color of the front door to complain.

So yes, 100%…if flags make your site look better just use flags and ignore the noise. If you want to do it a different way, do that. You’re investing the time to get it right, you don’t have time to deal with petty complaints about the selection box.

Re:Open-Sourcing our Firmware by capableweb on Friday January 21, 2022 @01:41PM (#30028040)
> Plus, when the language codes include a country it’s a natural UI decision.

Un-natural UI decision then if a language can exists in more than one country, and one country can have many languages?

Re:Open-Sourcing our Firmware by ignaloidas on Friday January 21, 2022 @01:22PM (#30027716)
Why have flags at all? Just use the native language name and a translation.
Re:Open-Sourcing our Firmware by KeytarHero on Friday January 21, 2022 @01:40PM (#30028014)
If I end up on the page in a language I don't know, then how would I find the language selector?

I agree that flags aren't great, but I don't know of any other solution to this problem.

Re:Open-Sourcing our Firmware by kilburn on Saturday January 22, 2022 @04:15AM (#30035053)
We should push to adopt a standard iconography for "language/region menu/options". A good candidate may be a world icon (which some companies already use, e.g.: dell.com).

Once there, given that the language list itself is in its own localization (or that iso codes are used to represent them, or both) you should be able to pick yours just fine.

Re:Open-Sourcing our Firmware by scj on Friday January 21, 2022 @05:32PM (#30030819)
More problematically, in a character set you don't know!

Iconography is required.

Re:Open-Sourcing our Firmware by flatiron on Friday January 21, 2022 @01:21PM (#30027710)
“Please select your ISO language code” /s
Re:Open-Sourcing our Firmware by rg111 on Friday January 21, 2022 @01:28PM (#30027838)
Anything but the flag.

Why not use full language names?

I am very tired of seeing one flag represent my language where that is the newer nation using that language as national language. But that language is spoken for a thousand years or more in other regions.

Re:Open-Sourcing our Firmware by yjftsjthsd-h on Friday January 21, 2022 @01:32PM (#30027890)
> I am very tired of seeing one flag represent my language where that is the newer nation using that language as national language. But that language is spoken for a thousand years or more in other regions.

I'm not disagreeing with your general point, but I'm curious: What language is over a thousand years old and still recognizably the same language?

Re:Open-Sourcing our Firmware by Hjfrf on Friday January 21, 2022 @01:40PM (#30028025)
US English comes to mind, not that middle English is particularly readable.
Re:Open-Sourcing our Firmware by yjftsjthsd-h on Friday January 21, 2022 @01:56PM (#30028260)
I was thinking of English as a counter case when I wrote the comment:) Skimming the history section of https://en.wikipedia.org/wiki/English_language#History , I don't think I would really describe anything before "Early Modern English" (1500-1700) as meaningfully the same language; if you took a modern English-speaker and gave them a sample of Middle English, they wouldn't be able to read it, and if you stuck them in a room with a speaker of ME neither would be able to understand what the other person was saying.

Although in fairness, it does now come down to a semantic argument about what counts as the same language, and I acknowledge that a reasonable person could disagree with my narrower view.

Re:Open-Sourcing our Firmware by a_t48 on Friday January 21, 2022 @02:36PM (#30028858)
"Englischmen þeyz hy hadde fram þe bygynnyng þre manner speche, Souþeron, Northeron, and Myddel speche in þe myddel of þe lond, ... Noþeles by comyxstion and mellyng, furst wiþ Danes, and afterward wiþ Normans, in menye þe contray longage ys asperyed, and som vseþ strange wlaffyng, chyteryng, harryng, and garryng grisbytting."

This is...difficult to read, but once you realize that þ == th, it's semi comprehensible. Looking up some Middle English on Youtube, it's also semi comprehensible. I doubt I could have a deep philosophical conversation with an ME speaker, I think we could make eachother understood.

Re:Open-Sourcing our Firmware by runnerup on Friday January 21, 2022 @02:10PM (#30028455)
> Although in fairness, it does now come down to a semantic argument about what counts as the same language, and I acknowledge that a reasonable person could disagree with my narrower view.

I really enjoy Jamaican patois for this. Arriving there, try as hard as I could...I couldn't understand a single word of it, even though it was ostensibly "English-enough" that I should have been able to. The first 5 days spending time in groups speaking the local language felt like anywhere else that I couldn't understand -- Saudi Arabia, Portugal, Guatemala, etc.

Right around the one week mark, something just 'clicked' and I could understand pretty much all of it as if it were regular English except for the true slang. Really felt like "dialect" on the cusp of become "language". Very cool spot for a language.

Re:Open-Sourcing our Firmware by 908B64B197 on Friday January 21, 2022 @02:18PM (#30028579)
> What language is over a thousand years old and still recognizably the same language?

Latin.

Re:Open-Sourcing our Firmware by kingcharles on Friday January 21, 2022 @06:19PM (#30031243)
This answer wins. I suspect this is the most widely-used language that has not changed in 2000 years. When I was at school in the 80s we were seemingly learning the same Latin as spoken by the Romans.
Re:Open-Sourcing our Firmware by rat9988 on Friday January 21, 2022 @01:46PM (#30028104)
Arabic
Re:Open-Sourcing our Firmware by badLiveware on Friday January 21, 2022 @01:38PM (#30027979)
Icelandic and old norse perhaps
Re:Open-Sourcing our Firmware by KeytarHero on Friday January 21, 2022 @01:40PM (#30028030)
> Why not use full language names?

If I end up on the page in a language I don't know, then how would I find the language selector?

I agree that flags aren't great, but I don't know of any other solution to this problem.

Re:Open-Sourcing our Firmware by rg111 on Sunday January 23, 2022 @04:51AM (#30044934)
Language codes are a solution. And it works great.

And language codes should be given in ASCII. Someone not native has a slight chance of not knowing what fr is, or bn is, or nl is, but, a native, or someone who speaks the language will always know.

Re:Open-Sourcing our Firmware by grishka on Friday January 21, 2022 @01:47PM (#30028121)
I've seen English represented as a flag made of halves of UK and US flags
Re:Open-Sourcing our Firmware by amelius on Friday January 21, 2022 @02:54PM (#30029073)
> what is the next best alternative?

This:

https://news.ycombinator.com/item?id=30028593

Re:Open-Sourcing our Firmware by looperhacks on Friday January 21, 2022 @03:41PM (#30029705)
This doesn't help the user choose a language. The language my browser sends to the website is not necessarily the language I want to view the webpage in.
Re:Open-Sourcing our Firmware by amelius on Friday January 21, 2022 @04:02PM (#30029950)
Then you have to change your browser settings.

https://www.w3.org/International/questions/qa-lang-prioritie...

Re:Open-Sourcing our Firmware by kingcharles on Friday January 21, 2022 @06:21PM (#30031259)
Well, the problem is I'll sometimes go to a site like Wikipedia and then switch to the Japanese version because the Nihongo 日本語 version of the article has more information than the English one.
Re:Open-Sourcing our Firmware by 908B64B197 on Friday January 21, 2022 @02:13PM (#30028510)
> but what is the next best alternative?

Use the user locale. Expressed as a geographic region (which you can use to compute the best possible region to serve the user from) and a language (used to render the page).

If you do it correctly you can support weird combinations, such as a German speaker living in California (expects prices in USD). Or the country of Switzerland (one territory, 4 official languages).

Re:Open-Sourcing our Firmware by uoaei on Friday January 21, 2022 @02:10PM (#30028459)
We've had two-letter designations for languages for a long time now.
Re:Open-Sourcing our Firmware by darrenf on Friday January 21, 2022 @02:40PM (#30028912)
Two letters in the Latin alphabet, I assume - does that assist those who primarily read Cyrillic, Greek, Vietnamese, Arabic, Thai, Tamil, … ?

Localisation basically never has a simple “we should just…” solution.

Re:Open-Sourcing our Firmware by kingcharles on Friday January 21, 2022 @06:25PM (#30031281)
My first reaction was to agree, but, all languages also use Latin characters for all sorts of things, especially brand names. A lot of native languages just aren't adding native words fast enough to keep up with technology and so the English words end up getting subsumed. Sometimes they'll be converted into local glyphs (e.g. Katakana in Japanese), but sometimes not. I doubt there are many humans alive who can't recognize Latin characters, even if they have absolutely no understanding of what the meaning is or how to pronounce them.
Re:Open-Sourcing our Firmware by uoaei on Friday January 21, 2022 @02:56PM (#30029098)
I'm sure if Mandarin were the default language, English speakers would quickly learn to recognize the character for "English" and be able to find/click it on a webpage without too much hassle.

Language comprehension is unnecessary when all you need to do is recognize a character.