News for hackers. Stuff that matters.
Re:Don't set the language of your website based on user loca... by est31 on Monday May 18, 2020 @12:24AM (#23218320)
Microsoft is doing this as well. I google something in english, find an english MSDN entry with english title and preview, but when I click on the link, the language changes to German. I'm a native German speaker but having read about technical topics almost exclusively in english for years, I'm just much more comfortable in english now.

What makes it even worse is that often it's not properly translated, but just Microsoft's translation machine applied to the English version. The result isn't very good. And even if it were manually translated, the result would likely end up a mixture of english and German. German is a very nice language, as is english, but what I absolutely hate is the mix of the two, also called denglisch.

Re:Don't set the language of your website based on user loca... by BjoernKW on Monday May 18, 2020 @04:31AM (#23219840)
Somewhat related to technical documentation, error messages translated in the user's locale are a bane in particular.

Sometimes when not working on my own machines at a client the locale is set to a language other than English and some Java frameworks such as Hibernate then will dutifully print out error messages in that language.

This is next to useless. At a time when you still had nothing but a printed manual in your local language to go on this might have made some sense but nowadays people research error messages on the internet. Searching for some arcane ORM framework error message in a language other than English is a futile endeavour.

Re:Don't set the language of your website based on user loca... by theshrike79 on Monday May 18, 2020 @07:58AM (#23221223)
Oracle does this too. The best part is that this is all set during installation, there's no way to change it afterwards.

It's really great trying to figure out an error that's written in Norwegian, when you're not the least bit familiar in that language.

Most of the errors do have codes though, and just Googling that will get you started at least.

Re:Don't set the language of your website based on user loca... by miahi on Monday May 18, 2020 @09:28AM (#23222034)
You can install a new language easily by using the -addLangs parameter of the installer (on an existing install) or by copying the msg/msb files from another install (matching versions). After that you have to change the NLS settings of the DB and it will switch to the new language.
Re:Don't set the language of your website based on user loca... by nottorp on Monday May 18, 2020 @12:21PM (#23224460)
Sounds as easy as hitting yourself with a medium sized hammer :)
Re:Don't set the language of your website based on user loca... by crankylinuxuser on Monday May 18, 2020 @09:45AM (#23222202)
That's not entirely true. You can "change" the charset from 1 type to another... The problem with that is fields may extend past the max length of that field when converting from 1 to the other.

Source: me. I had to help someone with specifically this when they set the wrong charset on their DB. Had these problems.

Re:Don't set the language of your website based on user loca... by simiones on Monday May 18, 2020 @06:13AM (#23220519)
The most fun I had was investigating some bug reports with .NET Exceptions in Japanese. Thankfully, there was enough of context in the rest of the logs to get to the bottom of things, but having to rely on machine translations for debugging would have been... fun.
Re:Don't set the language of your website based on user loca... by Piskvorrr on Monday May 18, 2020 @05:56AM (#23220411)
Some programs work around this by prepending a global error ID to the localized, such as "E300: Ascorbic Acid Error", but this is harder to manage on the development side.
Re:Don't set the language of your website based on user loca... by polm23 on Monday May 18, 2020 @08:50AM (#23221662)
spaCy doesn't localize errors, but it does do a beautiful job of managing that kind of error codes.

https://github.com/explosion/spaCy/blob/master/spacy/errors....

Re:Don't set the language of your website based on user loca... by the_af on Monday May 18, 2020 @09:31AM (#23222061)
> error messages translated in the user's locale are a bane in particular.

Ah, I remember MS Combat Flight Simulator 2. Translated to Spanish (or maybe automatically using local system files?) without bothering the check the text fit the allotted fields, which meant you could not read most things at all. Impressive QA, Microsoft! ;)

Re:Don't set the language of your website based on user loca... by sbergot on Monday May 18, 2020 @01:00AM (#23218534)
Their automated translation also affects language keyword and error codes. It renders the page unusable. The option to change the language is hard to find and the selected language is not stored.

Some people have worked very hard to make their doc as painful as possible.

Re:Don't set the language of your website based on user loca... by Swizec on Monday May 18, 2020 @12:53AM (#23218492)
One day I was visiting Austria when I used my mobile browser to find something on Google. The results came back in German.

Ok fine whatever, don’t really speak German but did enough in high school to muddle through. Proba localization, will turn back when I go home.

2 years later and Google on my phone remains German. This is my life now ... at least I get to practice a little german I guess

Re:Don't set the language of your website based on user loca... by tbodt on Monday May 18, 2020 @02:59AM (#23219203)
Re:Don't set the language of your website based on user loca... by mynegation on Monday May 18, 2020 @01:17AM (#23218633)
Not a language, but hotels.com was quoting me prices to North American hotels in Rupias months after my visit to India.
Re:Don't set the language of your website based on user loca... by moepstar on Monday May 18, 2020 @01:58AM (#23218869)
Same for Tripadvisor after being in Mexico - all Hotel prices have been in Pesos for a while (had to manually change it back)
Re:Don't set the language of your website based on user loca... by ephimetheus on Monday May 18, 2020 @02:34AM (#23219073)
Uber is convinced I live in Brazil and speak Portuguese now.
Re:Don't set the language of your website based on user loca... by jakub_g on Monday May 18, 2020 @03:46AM (#23219495)
Slightly orthogonal: live in France, bought a new phone just before travelling. The first SIM card I put in it was a temporary travel card bought upon arrival.

Now Google Maps shows me prices of hotels in Uzbekistani soms. Didn't find a way to reset it in the UI, clearing GMaps cache didn't help either. It's been a year already.

Re:Don't set the language of your website based on user loca... by VBprogrammer on Monday May 18, 2020 @08:30AM (#23221481)
Having integrated with that API before, I would be totally unsurprised to find the whole system was a complete mess.
Re:Don't set the language of your website based on user loca... by ljm on Monday May 18, 2020 @04:36AM (#23219879)
I have some websites assuming I'm Russian still, after a year in Latvia (why not Latvian? Who knows.), and even when upgrading my iPhone, everything would default to Spanish.

I distinctly remember updating my address and location each time, but it never made a difference.

Now I just find it a little amusing. Keeps my Russian and Spanish fresh.

Re:Don't set the language of your website based on user loca... by ljm on Monday May 18, 2020 @04:35AM (#23219874)
I have some websites assuming I'm Russian still, after a year in Latvia, and even when upgrading my iPhone, everything would default to Spanish.

I distinctly remember updating my address and location each time, but it never made a difference.

Now I just find it a little amusing. Keeps my Russian and Spanish fresh.

Re:Don't set the language of your website based on user loca... by ShinTakuya on Monday May 18, 2020 @04:11AM (#23219693)
You didn't try deleting cookies, or finding the preferences page, or Googling "phone browser stuck in German"?

Don't get me wrong, I've had my moments where I've done similar things for years. I just have to say it's a little funny.

Re:Don't set the language of your website based on user loca... by tasogare on Monday May 18, 2020 @01:59AM (#23218877)
I’m an European guy living in Japan that browse tech documentation in English. I’ve the same issue than you, sometimes MSDN or MDN pages are returned in French (all my devices UI are in English, with French locale). If it were good French, why not, but it’s crappy MT instead. Have so respect for the user please. Sometimes I got Japanese thrown at me, depending on which network I’m connected.

Finally I sometimes perform search in other languages, for instance Chinese. Of course I got results mostly in Japanese from Google... few years ago it was possible to change the language for a query, now the settings in burried under dozen of clicks, and are link to my profile. So basically unusable.

In a way it’s like the OS desktop UX: developers are busy trying to outsmart the user, yet the end result is more painful to use and less customizable than it was a decade ago.

Re:Don't set the language of your website based on user loca... by fomine3 on Tuesday May 19, 2020 @09:39PM (#23242434)
I always use '&hl=en' parameter for changing Google search language.
Re:Don't set the language of your website based on user loca... by darekkay on Monday May 18, 2020 @05:37AM (#23220300)
There's a Firefox extension [1] to automatically change the language for MSDN (Microsoft) and MDN (Mozilla). I've extracted this functionality into a userscript [2].

[1] https://addons.mozilla.org/en-US/firefox/addon/english-conte...

[2] https://github.com/darekkay/config-files/blob/master/userscr...

Re:Don't set the language of your website based on user loca... by theshrike79 on Monday May 18, 2020 @08:01AM (#23221240)
Ahh, Microsoft.

They used to localise VBA too, all IFs and THENs and WHILEs were translated to the local language. Yes it was as bad as you think it was.

You could somehow run VBA macros written in the wrong language, you couldn't just touch them or it'd be all syntax errors everywhere.

Re:Don't set the language of your website based on user loca... by brazzy on Monday May 18, 2020 @08:35AM (#23221521)
Excel still has localized syntax, I think.
Re:Don't set the language of your website based on user loca... by vimslayer on Monday May 18, 2020 @08:50AM (#23221664)
Are you following an Excel guide that's written in English but can't use the formulas because your own computer is set to use some other language? Or did you inherit some Excel sheets to maintain that are not written in English? No problem! Just install Excel Functions Translator [1] and say Auf Wiedersehen to all you localization worries!

/s

[1]: https://support.office.com/en-us/article/excel-functions-tra...

Re:Don't set the language of your website based on user loca... by netsharc on Monday May 18, 2020 @11:57AM (#23224075)
There is an Excel "German" dictionary (probably others too), but when you Google "Excel German dictionary" Google shows "übertreffen". Which is the German word for "to excel"...
Re:Don't set the language of your website based on user loca... by marcosdumay on Monday May 18, 2020 @09:34AM (#23222077)
It's not only names that are localized, but also file formats. If you export a CSV in an English speaking locale, you won't be able to use it in a Latin one.
Re:Don't set the language of your website based on user loca... by brazzy on Monday May 18, 2020 @06:18PM (#23229049)
CSV is not so much localized as underspecified.
Re:Don't set the language of your website based on user loca... by Tagbert on Monday May 18, 2020 @04:22PM (#23227887)
that’s because you should be choosing UTF-8 as the export encoding. Don’t depend on default.
Re:Don't set the language of your website based on user loca... by aroberge on Monday May 18, 2020 @08:10PM (#23229876)
The comma is used as a decimal separator in many countries which makes it impossible to use csv files without special import rules; nothing to do with using utf-8.
Re:Don't set the language of your website based on user loca... by taneq on Monday May 18, 2020 @07:47AM (#23221151)
At one point Windows 10 used to use your keyboard layout to choose your local language. So as an Aussie I was stuck choosing between spellcheck telling me 'colour' and 'flavour' were wrong, or having to deal with a UK keyboard layout. It seems fixed now but it was really annoying.
Re:Don't set the language of your website based on user loca... by usrusr on Monday May 18, 2020 @04:17AM (#23219738)
I'm in the exact same situation, well, except for that time when for some unfathomable reason Google insisted, for weeks, to deliver what I believe is Lithuanian to my home browser.

Before the great Firefox extension purge I was sending out different language preference headers depending on domain. Unfortunately, this trick was already breaking down as more and more German companies redirect from their .de to their .com to show off ambition, leaving me with a bad English translation of the massive German due to headers.

What I'd love to see would be a server side distinction between primary and secondary languages, but of course companies would lie their asses off for uncountable reasons bad and worse.

Re:Don't set the language of your website based on user loca... by dgb23 on Monday May 18, 2020 @05:25AM (#23220222)
For me it is even worse. I‘m Swiss-German, my name is french and have all my software set to english for consistency.

Some sites (and ads) don’t respect my settings and will default to french. My french is rudimentary at best.

Re:Don't set the language of your website based on user loca... by acqq on Monday May 18, 2020 @08:25AM (#23221444)
I am even "less default" than that, expecting the dates to be formatted the way I've defined them in the system setting (it can be set separately from the language), and some programs ignore that too.
Re:Don't set the language of your website based on user loca... by muffinman26 on Monday May 18, 2020 @02:02PM (#23226032)
Even worse, when I was studying abroad in Germany I'd get the Microsoft English-translated-to-German page and then Chrome, which I had originally installed in the US and configured for US English, would "helpfully" translate the German back to English.

I can read English and usually German, but I definitely can't read technical documents that have passed through a machine translator twice.

Re:Don't set the language of your website based on user loca... by rossng on Monday May 18, 2020 @07:03AM (#23220874)
Microsoft seem to be particularly rubbish at this. For example, the Microsoft Store (when it works at all) does not acknowledge the idea that you might live in a non-English speaking country but speak English.

For example, here it is looking very silly in Denmark: https://i.imgur.com/kdux88q.jpg

Re:Don't set the language of your website based on user loca... by wilgertvelinga on Monday May 18, 2020 @04:51AM (#23220005)
Try the FFS MSDN in English browser extension. Available for Chrome and Firefox.

https://www.google.com/search?q=ffs+msdn+in+english