Return-Path: Mailing-List: contact apache-docs-help@apache.org; run by ezmlm Delivered-To: mailing list apache-docs@apache.org Received: (qmail 48714 invoked from network); 8 Feb 2001 21:11:15 -0000 Received: from finance.commerce.ubc.ca (137.82.66.119) by h31.sny.collab.net with SMTP; 8 Feb 2001 21:11:15 -0000 Received: from srtb0411-239.resnet.ubc.ca (srtb0411-239.resnet.ubc.ca [142.103.37.239]) by finance.commerce.ubc.ca (8.11.0/8.11.0) with ESMTP id f18LBJg01806; Thu, 8 Feb 2001 13:11:19 -0800 Date: Thu, 8 Feb 2001 13:13:23 -0800 (Pacific Standard Time) From: Joshua Slive To: cc: Subject: Re: Language Negotiation: "No Acceptable Variant" In-Reply-To: Message-ID: X-X-Sender: slive@finance.commerce.ubc.ca MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N On Mon, 29 Jan 2001, Brian Behlendorf wrote: > We could easily modify the text to make it look less like an error and > more like an informational thing, e.g. > > We do not have the document in the languages you've indicated you > accept, which are '$lang'. We do have the documents available in other > languages, though, which we provide direct links to below. If you are > able to read one of these other languages, we urge you to consider > configuring your browser to indicate an acceptance of these languages. > > To be really slick, we could provide the above error message in one of the > acceptable languages. > > I'm worried that just assuming that a 406 means an error means "give them > an english document" is a viewpoint too English-centric. > I want to restart this thread, because it never came to a conclusion. Brian's idea is fine, but pretty much impossible to implement, in my opinion (at least as far as providing the error message in multiple languages). On the other hand, it would be great if enough information could be provided in the environment such that a custom ErrorDocument could be used to list all the available variants. Then here's where the fun part comes: what if you don't have an ErrorDocument in any of the "acceptable" languages? In general, the webmaster is the one best able to know what language should be served in that case. For example, in httpd.apache.org, that would clearly be english, while in www.apache.jp, it would clearly be japanese. Currently, in order to implement such a "fall-back" page with MultiViews, it is necessary to have a page with an extension that is not mapped to any particular language. (eg. index.html.html in the case of the Apache 1.3 docs.) It has been suggested (and I think it is a good idea), that there should be some sort of FallBackLanguage directive that could tell Apache to use a specific language-page when the accept negotiation would otherwise fail. So that is two suggestions: 1. Find a way to provide ErrorDocument with enough information so that webmasters can customize the "No Acceptable Variants" message. This could also be useful for mod_speling. 2. Add a "FallBackLanguage" directive to use when negotiation fails. These directives could be combined such that ordinary content gets the "No Acceptable Variants" ErrorDocument when negotiation fails, but the ErrorDocument itself is subject to the FallBackLanguage directive in case it can't find a good language. And possibly: 3. Change the default text of the "No Acceptable Variants" page to be a little more friendly, at least in English. Unfortunately, I don't know this code nearly well enough to even start implementing this stuff. To improve the present state of the Apache docs (and help out the millions of people with "misconfigured" browsers) I suggest immediately including an index.html.html page in the docs which has either: 1. or 2. A helpful error message explaining how to configure browsers accept-language setting. Sorry for the excessively long message, but I would like to come to some sort of conclusion. Joshua