httpd-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Fw: cvs commit: httpd-2.0/docs/docroot/error
Date Mon, 20 Aug 2001 18:27:58 GMT

Here's a schema...

  Combine any group of error codes into a single HTTP_<ERROR>.html.var file,
alpha order by language.  The name comes from httpd-2.0/include/httpd.h so we
have a strict canonical naming convention.  [someday including DAV_ etc.]

  Remove the newly combined set from docs/docroot/error, commit into docs/error.
If we 'improve' the syntax, I'll mass update the tagging.  This is now tested and
appears to work very efficiently and smoothly.

  Be very careful that the Body: tag matches the ending tag.  The commit of my
mod_negotiation patch included diagnostics.  We will only parse 8k bytes, all
these files were smaller than 1k.

  Does this look good to everyone?  Very fast, very compact, very consistent.
Lars's scheme is especially nice, since a VirtualHost may Alias /error/include
to serve a different set of error message wrappers (if you like.)  With either
multiviews or mappings, the entire body of messages can be tweaked.

  I'll jump right on mod_negotation ForceLanguagePreference, and wrap up some left
over mod_ssl and mod_mime code, if someone wants to pick up the ball on the rest
of the error set.  Otherwise I'll get to it late this week.

  Then our translators can jump right in.  The Body: tag ... tag contents are
treated as binary, so even alternate charsets are allowed :)  (That's why a real
'end' tag, al la mime multipart grouping, is required.)

Bill



> wrowe       01/08/20 10:59:04
>
>   Removed:     docs/docroot/error auth_required.de.html
>                         auth_required.en.html auth_required.es.html
>                         auth_required.fr.html auth_required.html
>   Log:
>     This is a combined typemap/error response file for multiple langauges,
>     as originally contributed by Lars.

... and company, sorry.  We need a home for these credits, error.README should
come out of the doc tree.  Say in the credits page of the apache-docs project :-?
Somehow this commit didn't work in one shot, it continues ...

> wrowe       01/08/20 11:04:36
>   Added:       docs/error HTTP_UNAUTHORIZED.html.var
>   Log:
>     My bad.  We need to use the constants defined in httpd.h.  The essential
>     reason is that these errors will grow to include 'other' things, like
>     custom error responses, DAV error responses, and so on.  They may also
>     start including 'sub errors' - local langauge explanations of specific
>     failures.  Let's use the httpd.h constants rather than numbers, they
>     are easier to read.

>   Revision  Changes    Path
>   1.1                  httpd-2.0/docs/error/HTTP_UNAUTHORIZED.html.var
>
>   Index: HTTP_UNAUTHORIZED.html.var
>   ===================================================================
>   Content-language: de
>   Content-type: text/html
>   Body:----------de--
>   <!--#set var="TITLE" value="Authentikation fehlgeschlagen!" -->
>   <!--#include virtual="include/top.html" -->
>
>       Der Server konnte nicht verifizieren, ob Sie authorisiert sind,
>       auf den URL "<!--#echo encoding="url" var="REDIRECT_URL"-->" zuzugreifen.
>       Entweder wurden falsche Referenzen (z.B. ein falsches Passwort)
>       angeben oder ihr Browser versteht nicht, wie die geforderten
>       Referenzen zu übermitteln sind.
>
>   <!--#include virtual="include/spacer.html" -->
>
>       Sofern Sie für den Zugriff berechtigt sind, überprüfen Sie bitte
>       die eingegebene User-ID und das Passwort und versuchen es erneut.
>
>   <!--#include virtual="include/bottom.html" -->
>   ----------de--
>
>   Content-language: en
>   Content-type: text/html
>   Body:----------en--
>   <!--#set var="TITLE" value="Authentication required!" -->
>   <!--#include virtual="include/top.html" -->
>
>       This server could not verify that you are authorized to access
>       the URL "<!--#echo encoding="url" var="REDIRECT_URL" -->".
>       You either supplied the wrong credentials (e.g., bad password), or your
>       browser doesn't understand how to supply the credentials required.
>
>     <!--#include virtual="include/spacer.html" -->
>
>       In case you are allowed to request the document, please
>       check your user-id and password and try again.
>
>   <!--#include virtual="include/bottom.html" -->
>   ----------en--
>
>   Content-language: es
>   Content-type: text/html
>   Body:----------es--
>   <!--#set var="TITLE" value="Authentication required!" -->
>   <!--#include virtual="include/top.html" -->
>
>    El servidor no puede certificar que usted este autorizado
>    para accesar el URL "<!--#echo encoding="url" var="REDIRECT_URL" -->".
>    Usted pudo suministrar informaci&oacute;n incorrecta accidentalmente
>    (ejem. una contrase&ntilde;a inv&aacute;lida) o, el buscador no sabe
>    como suministrar la informaci&oacute;n requerida.
>
>     <!--#include virtual="include/spacer.html" -->
>
>    En caso de que a usted le este permitido el uso del
>    documento requerido, le solicitamos de la manera mas atenta
>    que porfavor vuelva a intentar la operaci&oacute;n suministrando
>    nuevamente su numero de identificaci&oacute;n y su contrase&ntilde;a.
>
>    Muchas Gracias.
>   <!--#include virtual="include/bottom.html" -->
>   ----------es--
>
>   Content-language: fr
>   Content-type: text/html
>   Body:----------fr--
>   <!--#set var="TITLE" value="Autorisation requise!" -->
>   <!--#include virtual="include/top.html" -->
>
>       Ce server n'a pas &eacute;t&eacute; en mesure de v&eacute;rifier que
>       vous &ecirc;tes autoris&eacute; &agrave; acc&eacute;der &agrave;
cette
>       URL "<!--#echo encoding="url" var="REDIRECT_URL" -->".
>
>       Vous avez ou bien fourni des coordonn&eacute;es erron&eacute;es
>       (p.ex. mot de passe inexact) ou bien votre navigateur ne parvient
>       pas &agrave; fournir les donn&eacute;es exactes.
>
>     <!--#include virtual="include/spacer.html" -->
>
>       Si vous &ecirc;tez autoris&eacute; &agrave; requ&eacute;rir le
document,
>       veuillez v&eacute;rifier votre nom d'utilisateur et votre mot de passe
>       et r&eacute;essayer.
>
>   <!--#include virtual="include/bottom.html" -->
>   ----------fr--
>
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: apache-docs-unsubscribe@apache.org
For additional commands, e-mail: apache-docs-help@apache.org


Mime
View raw message