Received: (qmail 1516 invoked by uid 2012); 16 Dec 1997 09:23:14 -0000 Message-Id: <19971216092314.1515.qmail@hyperreal.org> Date: 16 Dec 1997 09:23:14 -0000 From: Gordan Vosicki Reply-To: gordan.vosicki@icsa.ch To: apbugs@hyperreal.org Subject: Language negotiation requires the language name to follow all the rest. X-Send-Pr-Version: 3.2 >Number: 1559 >Category: mod_mime >Synopsis: Language negotiation requires the language name to follow all the rest. >Confidential: no >Severity: non-critical >Priority: medium >Responsible: apache >State: closed >Class: doc-bug >Submitter-Id: apache >Arrival-Date: Tue Dec 16 01:30:00 PST 1997 >Last-Modified: Mon Sep 7 05:55:35 PDT 1998 >Originator: gordan.vosicki@icsa.ch >Organization: >Release: 1.2.4 >Environment: Linux 2.0.23 / Intel / Slackware distribution >Description: In "Apache: The definitive guide", page 92, it is said that both forms "index.html.en" and "index.en.html" are accepted. After a day's testing work, a short look at the source code showed this can't be true! The only accepted for is "index.html.en". It would be very nice to be able to call the language-dependent files index_en.html, or index.html_en because many authoring tools replace the first dot by an underscore, making it impossible to save a file called index.html.en ! "index.en.html" would also be better than "index.html.en" because this would allow to make direct links to a specific language while keeping the automatic content-type recognition with the ".html" suffix. >How-To-Repeat: Very simply! Just create the files: index.en.html (does not work) index.html.en (works) >Fix: Well probably something to expand in the region of "getword", but I don't know the Apache code well enough to suggest an "intelligent" way of fixing it >Audit-Trail: State-Changed-From-To: open-feedback State-Changed-By: pcs State-Changed-When: Tue Dec 16 03:12:44 PST 1997 State-Changed-Why: Hello. Can you explain why you think that this does not work? If you telnet to your server and request the page do you see a "Content-Language" header? Can you put both of these files on a server which we can access, for tesing? It should work. Extensions (such as "en" and "html") can be given in ANY order. Obviously Apache has to be told about the extension for it to understand them (with, for example, AddType and AddLanguage). From: Gordan Vosicki To: pcs@hyperreal.org Cc: apbugs@Apache.Org Subject: Re: mod_mime/1559: Language negotiation requires the language name to follow all the rest. Date: Wed, 17 Dec 1997 12:31:19 +0100 pcs@hyperreal.org wrote: > [In order for any reply to be added to the PR database, ] > [you need to include in the Cc line ] > [and leave the subject line UNCHANGED. This is not done] > [automatically because of the potential for mail loops. ] > > Synopsis: Language negotiation requires the language name to follow all the rest. > > State-Changed-From-To: open-feedback > State-Changed-By: pcs > State-Changed-When: Tue Dec 16 03:12:44 PST 1997 > State-Changed-Why: > Hello. Can you explain why you think that this does > not work? If you telnet to your server and request > the page do you see a "Content-Language" header? > Can you put both of these files on a server which we > can access, for tesing? It doesn't work because when the file is called "index.html.fr", then I get it andwhen it is called "index.fr.html", then I don't. Apache returns the "Content-Language" header the right way. If my french file is called index.html.fr, the Content-language is fr. If my file is called index.fr.html and I have a file index.html.en (english is my 2nd choice), then I get a Content-language: en with the english document. If my english document is called index.en.html, the server does not find the document. > > > It should work. Extensions (such as "en" and "html") can be > given in ANY order. Obviously Apache has to be told > about the extension for it to understand them (with, > for example, AddType and AddLanguage). Obviously, I have 3 AddLanguage statements. Hope it helps Gordan Vosicki Comment-Added-By: brian Comment-Added-When: Wed May 20 19:13:35 PDT 1998 Comment-Added: You say: Comment-Added-By: coar Comment-Added-When: Tue Aug 4 19:19:04 PDT 1998 Comment-Added: [This is a standard response.] This Apache problem report has not been updated recently. Please reply to this message if you have any additional information about this issue, or if you have answers to any questions that have been posed to you. If there are no outstanding questions, please consider this a request to try to reproduce the problem with the latest software release, if one has been made since last contact. If we don't hear from you, this report will be closed. State-Changed-From-To: feedback-closed State-Changed-By: coar State-Changed-When: Mon Sep 7 05:55:35 PDT 1998 State-Changed-Why: [This is a standard response.] No response from submitter, assuming issue has been resolved. >Unformatted: >It doesn't work because when the file is called "index.html.fr", then I get it >andwhen it is called "index.fr.html", then I don't. Are you making a request for "index", or a request for "index.html" - note that if you're making a request for simply "/", the DirectoryIndex is what gets substituted first. [In order for any reply to be added to the PR database, ] [you need to include in the Cc line ] [and leave the subject line UNCHANGED. This is not done] [automatically because of the potential for mail loops. ]