News for hackers. Stuff that matters.
Re:Debian 9.2 released by chungy on Monday October 09, 2017 @06:09AM (#15432614)
That's how the web is supposed to work. If you prefer English versions of pages, go into your browser configuration and tell it to prefer English.
Re:Debian 9.2 released by anc84 on Monday October 09, 2017 @07:06AM (#15432853)
It is a bit more complicated but I can get if people whose first language is English and who are rarely exposed to other languages cannot understand the struggle.

If I prefer to read English texts in their original form (because I understand it perfectly clear) but read texts in my native language in that original language, there is no single setting.

It feels weird saying this, but it reeks of a very anglo-american worldview to have a single language preference.

Re:Debian 9.2 released by sangnoir on Monday October 09, 2017 @11:25AM (#15434609)
I think gp was being descriptive and not prescriptive - one preferred language is how the web works today (and I speak as a someone who is multilingual).

> It feels weird saying this, but it reeks of a very anglo-american worldview to have a single language preference.

This is a the browser-side problem[1], so perhaps the browsers authors have an anglo-american worldview? You could file a bug/feature request with your favourite open-source browser. Alternatively, an extension that selectively sends per-website "Accept-Language" headers would work - I haven't checked if one exists but it can be written in a weekend (not sure if Firefox new extension framework will allows messing with the headers).

1. Some sites work around this by allowing you to have a choose a language that overrides the one requested by the browser and persist this in a cookie or your profile. Defaulting to the language requested by the browser is a sane default compared the other alternatives (like Geo-IP look-ups: "Oh, I see you are visiting Germany. I will assume your browser requested English in error and will serve you the German version of the article instead")

Re:Debian 9.2 released by rlpb on Monday October 09, 2017 @12:02PM (#15435002)
> This is a the browser-side problem...

No, it sounds like a protocol problem to me. How do I state in an HTTP request: "I speak English and German; if you can serve both and the article was written in one and translated to the other, then give me the original please".

That was a long sentence, but it wouldn't have been particularly hard to define well and put into the protocol when it was originally drafted. It's a bit late now, obviously.

For example, one could define provenance of a translation much like NTP defines strata. Accept-Language could then have taken this into account.

Re:Debian 9.2 released by sangnoir on Monday October 09, 2017 @01:21PM (#15435679)
> No, it sounds like a protocol problem to me. How do I state in an HTTP request: "I speak English and German; if you can serve both and the article was written in one and translated to the other, then give me the original please".

That is a problem with the quality of the translation/translators - not the protocol. The protocol is neutral on languages and considers all versions as equivalent, it only expects that you would pick one. The specific behaviour you are expecting can be trivially built into the server side without modifying the current protocol.

Re:Debian 9.2 released by majewsky on Monday October 09, 2017 @09:09AM (#15433458)
It's even worse than that. My primary criterion for whether I want English or German is not the language itself, but my expectation of the content being well-maintained. Translated versions are usually lagging behind a bit. On the Arch Linux wiki, I'll always use the English version. On my (German) university's website, I'd rather want the German version.
Re:Debian 9.2 released by raimue on Monday October 09, 2017 @06:43AM (#15432760)
I usually prefer English for anything related to development, software engineering, and computers in general. I also run my user interface in English, as it is much easier to search for error messages that way. However, when visiting websites of local places such as restaurants, I prefer the German version and not the one in English meant for tourists.

While third-party extensions allow to switch Accept-Language, it is not in the standard UI of modern browsers. For people like me, an advanced setting of Accept-Language per top-level domain would reduce the number of times I have to find the language switcher on the web page to a minimum.

Re:Debian 9.2 released by fifnir on Monday October 09, 2017 @07:28AM (#15432955)
And it is even worse for expats.

There's many sites that force the local language down your throat and it's sooooo annoying...

Re:Debian 9.2 released by stephenr on Monday October 09, 2017 @10:32AM (#15434076)
Google is terrible for this. They haven't yet worked out that a thai ip !== ability to read thai.
Re:Debian 9.2 released by jstimpfle on Monday October 09, 2017 @06:43AM (#15432761)
> That's how the web is supposed to work.

Citation needed. I'm pretty certain there are many proponents for a rather tight mapping from URL to content. Just imagine how hard it is for a search engine to index websites that deliver content based on unpredictable (anything else than URL) input variables.

Re:Debian 9.2 released by e12e on Monday October 09, 2017 @11:00AM (#15434321)
Eh, it really is how http is intended to work:

https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

It's no different (arguably a lot better) than cookies.

Re:Debian 9.2 released by jstimpfle on Monday October 09, 2017 @04:22PM (#15437155)
Sure, I know Accept-Language, as should be pretty clear from the discussion. Are you implying that the web is supposed to provide a shitty user experience?

In my opinion, there is very limited applicability of Accept-Language. Just because this header exists does not mean you need to make use of it at the slightest perceived opportunity (If all you have is a hammer...).

Re:Debian 9.2 released by dagw on Monday October 09, 2017 @09:19AM (#15433518)
I don't prefer English, I prefer the original, untranslated version of the site I actually tried visting.