You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Mark J Cox <ma...@awe.com> on 2002/12/13 12:49:42 UTC

http://httpd.apache.org/docs/ (fwd)

So it looks like IE installed in the UK sets up the browser by default to
send a HTTP_ACCEPT_LANGUAGE of en-gb and doesn't also include en.  So
James's browser is sending "en-gb,fr;q=0.5" and since that doesn't include
a plain "en" we end up sending him French.

Mark
--
Mark J Cox ........................................... www.awe.com/mark
Apache Software Foundation ..... OpenSSL Group ..... Apache Week editor


---------- Forwarded message ----------
Date: Fri, 13 Dec 2002 11:25:04 +0000
From: James Coates <ja...@affection.net>
To: webmaster@apache.org
Cc: mark@awe.com
Subject: http://httpd.apache.org/docs/

Hello!

I'm assuming that you're being very clever and seeing me come in to
read the docmentation from a French IP block. But actually, I'm an
English contractor working in Paris and documentation in French isn't
particularly helpful right now - especially when there's nothing to
click to change my language.

James.

-- 
------------------------------------------------------------------------------
jamesc@affection.net - http://www.affection.net/~jamesc/ - [+33] 6 79 02 08 99


Re: http://httpd.apache.org/docs/ (fwd)

Posted by Francis Daly <de...@daoine.org>.
On Fri, Dec 13, 2002 at 04:55:33PM +0100, Andr?  Malo wrote:
> * Francis Daly wrote:
> 
> > On Fri, Dec 13, 2002 at 01:09:47PM +0100, Andr?  Malo wrote:
> >> So what can we do? AFAICS, the "right" way to handle that automatically
> >> would be including "en" into the accept-string.
> > 
> > Actually, rfc-wise, that's the *wrong* thing to do.  Best case, you
> > might be able to assume "en" as the lowest-priority thing in the
> > accept-string, but his "fr;q=0.5" would still overrule it.
> 
> <snip>
>  
> > Really and truly, the only way for this work work is for the user to
> > configure their client properly.
> 
> ah, seems to be a misunderstanding. That's what I meant with my statement 
> above ;-)

Oh, sorry, yes, now that I read your mail again, I can see what you
meant.

(I took "automatically" to mean "dwim on the server", initially.  Hence
my confusion.)

	f
-- 
Francis Daly        deva@daoine.org

Re: http://httpd.apache.org/docs/ (fwd)

Posted by André Malo <nd...@perlig.de>.
* Francis Daly wrote:

> On Fri, Dec 13, 2002 at 01:09:47PM +0100, Andr?  Malo wrote:
>> So what can we do? AFAICS, the "right" way to handle that automatically
>> would be including "en" into the accept-string.
> 
> Actually, rfc-wise, that's the *wrong* thing to do.  Best case, you
> might be able to assume "en" as the lowest-priority thing in the
> accept-string, but his "fr;q=0.5" would still overrule it.

<snip>
 
> Really and truly, the only way for this work work is for the user to
> configure their client properly.

ah, seems to be a misunderstanding. That's what I meant with my statement 
above ;-)

nd
-- 
"Eine Eieruhr", erklärt ihr Hermann, "besteht aus einem Ei. Du nimmst
das Ei und kochst es. Wenn es hart ist, sind fünf Minuten um. Dann weißt
du, daß die Zeit vergangen ist."
                             -- Hannes Hüttner in "Das Blaue vom Himmel"

Re: http://httpd.apache.org/docs/ (fwd)

Posted by Joshua Slive <jo...@slive.ca>.
On Fri, 13 Dec 2002, Francis Daly wrote:
> Really and truly, the only way for this work work is for the user to
> configure their client properly.
>
> If he doesn't want to see french, lose the "fr" bit from his settings.
> Then "en-gb" will still fail, but the server might use
> "LanguagePriority" and "ForceLanguagePriority" to give the server
> administrator's preferred content.

+1.

We can't just tack on "en".  The only possible solution to this would be
to have a way to mark documents as belonging to multiple languages.  For
example, we could say that any ".en" document is "en, en-us, en-gb,
en-ca", etc.  Seems like a nightmare to me, even if that functionality did
exist.

Joshua.

Re: http://httpd.apache.org/docs/ (fwd)

Posted by Francis Daly <de...@daoine.org>.
On Fri, Dec 13, 2002 at 01:09:47PM +0100, Andr?  Malo wrote:
> * Mark J Cox wrote:
> 
> > So it looks like IE installed in the UK sets up the browser by default to
> > send a HTTP_ACCEPT_LANGUAGE of en-gb and doesn't also include en.
> 
> *gsmpf*
> *arrgh*
> [...]
> 
> What a fsck!
> 
> > So
> > James's browser is sending "en-gb,fr;q=0.5" and since that doesn't include
> > a plain "en" we end up sending him French.
> 
> So what can we do? AFAICS, the "right" way to handle that automatically 
> would be including "en" into the accept-string. 

Actually, rfc-wise, that's the *wrong* thing to do.  Best case, you
might be able to assume "en" as the lowest-priority thing in the
accept-string, but his "fr;q=0.5" would still overrule it.

> Labelling the document language(s) as en-gb would be very wrong.

Well, if that is the language they are in, then that labelling would
be right.  And if anyone asked for "en", they could get the "en-gb"
content.

But you're right that it is the wrong solution to a broken client
config.

> However, a senseful solution with cross references between languages has to 
> be created. It's listed in STATUS already ;-) perhaps it should get 
> increased priority.

The last time this came up (when IE sent "en-us", and nothing matched,
and people got the "jp" content because it was the smallest),
"ForceLanguagePriority" was introduced, as far as I recall.

That won't help now.

Really and truly, the only way for this work work is for the user to
configure their client properly.

If he doesn't want to see french, lose the "fr" bit from his settings.
Then "en-gb" will still fail, but the server might use
"LanguagePriority" and "ForceLanguagePriority" to give the server
administrator's preferred content.

Unfortunately, I can't think of an answer that will be acceptable to
the users.  Pointing them at <URL: http://www.debian.org/intro/cn> (or
<URL: http://www.debian.org/intro/cn.en.html> if they read english) is
the best I can suggest.

	f
-- 
Francis Daly        deva@daoine.org

Re: http://httpd.apache.org/docs/ (fwd)

Posted by André Malo <nd...@perlig.de>.
* Mark J Cox wrote:

> So it looks like IE installed in the UK sets up the browser by default to
> send a HTTP_ACCEPT_LANGUAGE of en-gb and doesn't also include en.

*gsmpf*
*arrgh*
[...]

What a fsck!

> So
> James's browser is sending "en-gb,fr;q=0.5" and since that doesn't include
> a plain "en" we end up sending him French.

So what can we do? AFAICS, the "right" way to handle that automatically 
would be including "en" into the accept-string. Labelling the document 
language(s) as en-gb would be very wrong.

However, a senseful solution with cross references between languages has to 
be created. It's listed in STATUS already ;-) perhaps it should get 
increased priority.

nd
-- 
die (eval q-qq:Just Another Perl Hacker
:-)

# André Malo, <http://www.perlig.de/> #