You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ig...@apache.org on 2012/04/25 14:37:30 UTC
svn commit: r1330243 - in /httpd/httpd/trunk/docs/manual: howto/cgi.xml.fr
howto/cgi.xml.ja howto/cgi.xml.ko howto/cgi.xml.meta mod/mod_lua.xml.fr
Author: igalic
Date: Wed Apr 25 12:37:30 2012
New Revision: 1330243
URL: http://svn.apache.org/viewvc?rev=1330243&view=rev
Log:
catch up to highlighting in the translations
Modified:
httpd/httpd/trunk/docs/manual/howto/cgi.xml.fr
httpd/httpd/trunk/docs/manual/howto/cgi.xml.ja
httpd/httpd/trunk/docs/manual/howto/cgi.xml.ko
httpd/httpd/trunk/docs/manual/howto/cgi.xml.meta
httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr
Modified: httpd/httpd/trunk/docs/manual/howto/cgi.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/howto/cgi.xml.fr?rev=1330243&r1=1330242&r2=1330243&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/howto/cgi.xml.fr (original)
+++ httpd/httpd/trunk/docs/manual/howto/cgi.xml.fr Wed Apr 25 12:37:30 2012
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.fr.xsl"?>
-<!-- English Revision : 1174747 -->
+<!-- English Revision: 1174747:1330165 (outdated) -->
<!-- French translation : Lucien GENTIS -->
<!-- Reviewed by : Vincent Deffontaines -->
@@ -255,11 +255,11 @@
<code>premier.pl</code>, et placez le dans votre répertoire
<code>cgi-bin</code>.</p>
- <example>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- print "Bonjour tout le monde . . .";
- </example>
+ <highlight language="perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+print "Bonjour tout le monde . . .";
+ </highlight>
<p>Même si Perl ne vous est pas familier, vous devriez être
capable de comprendre le fonctionnement de ce programme. La
@@ -531,15 +531,13 @@
variables d'environnement</a> aux variables de base fournies par
défaut.</p>
- <example>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- foreach $key (keys %ENV) {<br />
- <indent>
- print "$key --> $ENV{$key}<br>";<br />
- </indent>
- }
- </example>
+ <highlight language="perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+foreach $key (keys %ENV) {
+ print "$key --> $ENV{$key}<br>";
+}
+ </highlight>
</section>
<section id="stdin">
Modified: httpd/httpd/trunk/docs/manual/howto/cgi.xml.ja
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/howto/cgi.xml.ja?rev=1330243&r1=1330242&r2=1330243&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/howto/cgi.xml.ja [utf-8] (original)
+++ httpd/httpd/trunk/docs/manual/howto/cgi.xml.ja [utf-8] Wed Apr 25 12:37:30 2012
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
-<!-- English Revision: 545841:1174747 (outdated) -->
+<!-- English Revision: 545841:1330165 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
@@ -235,11 +235,11 @@
というファイルに保存し、それを <code>cgi-bin</code>
ディレクトリに置いてください。</p>
- <example>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- print "Hello, World.";
- </example>
+ <highlight language="perl">
+#!/usr/bin/perl<br />
+print "Content-type: text/html\n\n";<br />
+print "Hello, World.";
+ </highlight>
<p>Perl に精通していなくても、
何が起こるかを理解することはできるでしょう。1 行目は、
@@ -463,15 +463,13 @@
<a href="../env.html">あなた自身の環境変数を加える</a>ための、
多くの異なる方法を用意してします。</p>
- <example>
- #!/usr/bin/perl<br />
- print "Content-type: text/html\n\n";<br />
- foreach $key (keys %ENV) {<br />
- <indent>
- print "$key --> $ENV{$key}<br>";<br />
- </indent>
- }
- </example>
+ <highlight language="perl">
+#!/usr/bin/perl
+print "Content-type: text/html\n\n";
+foreach $key (keys %ENV) {
+ print "$key --> $ENV{$key}<br>";
+}
+ </highlight>
</section>
<section id="stdin">
Modified: httpd/httpd/trunk/docs/manual/howto/cgi.xml.ko
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/howto/cgi.xml.ko?rev=1330243&r1=1330242&r2=1330243&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/howto/cgi.xml.ko [euc-kr] (original)
+++ httpd/httpd/trunk/docs/manual/howto/cgi.xml.ko [euc-kr] Wed Apr 25 12:37:30 2012
@@ -1,7 +1,7 @@
<?xml version='1.0' encoding='EUC-KR' ?>
<!DOCTYPE manualpage SYSTEM "../style/manualpage.dtd">
<?xml-stylesheet type="text/xsl" href="../style/manual.ko.xsl"?>
-<!-- English Revision: 105989:1174747 (outdated) -->
+<!-- English Revision: 105989:1330165 (outdated) -->
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
Modified: httpd/httpd/trunk/docs/manual/howto/cgi.xml.meta
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/howto/cgi.xml.meta?rev=1330243&r1=1330242&r2=1330243&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/howto/cgi.xml.meta (original)
+++ httpd/httpd/trunk/docs/manual/howto/cgi.xml.meta Wed Apr 25 12:37:30 2012
@@ -8,7 +8,7 @@
<variants>
<variant>en</variant>
- <variant>fr</variant>
+ <variant outdated="yes">fr</variant>
<variant outdated="yes">ja</variant>
<variant outdated="yes">ko</variant>
</variants>
Modified: httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr?rev=1330243&r1=1330242&r2=1330243&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_lua.xml.fr Wed Apr 25 12:37:30 2012
@@ -93,7 +93,9 @@ gestionnaire.</p>
gestionnaire, plutôt que de simplement évaluer le corps d'un script dans
le style de CGI. Une fonction de gestionnaire se présente comme suit :</p>
-<example><title>example.lua</title><pre>
+
+<highlight language="lua">
+<strong>example.lua</strong>
-- exemple de gestionnaire
require "string"
@@ -119,7 +121,7 @@ function handle(r)
r:puts("unknown HTTP method " .. r.method)
end
end
-</pre></example>
+</highlight>
<p>
Ce gestionnaire se contente d'afficher les arguments codés d'un uri ou
@@ -151,7 +153,8 @@ code d'état HTTP ou des valeurs O
que vous pouvez écrire dans lua sous la forme <code>apache2.OK</code>,
<code>apache2.DONE</code>, ou <code>apache2.DECLINED</code>.</p>
-<example><title>translate_name.lua</title><pre>
+<highlight language="lua">
+<strong>translate_name.lua</strong>
-- exemple d'accroche qui réécrit un URI en chemin du système de
fichiers.
@@ -165,9 +168,10 @@ function translate_name(r)
-- on ne gère pas cette URL et on donne sa chance à un autre module
return apache2.DECLINED
end
-</pre></example>
+</highlight>
-<example><title>translate_name2.lua</title><pre>
+<highlight language="lua">
+<strong>translate_name2.lua</strong>
--[[ exemple d'accroche qui réécrit un URI vers un autre URI. Il renvoie
un apache2.DECLINED pour permettre à un autre interpréteur d'URL de
travailler sur la substitution, y compris l'accroche translate_name
@@ -186,7 +190,7 @@ function translate_name(r)
end
return apache2.DECLINED
end
-</pre></example>
+</highlight>
</section>
<section id="datastructures"><title>Structures de données</title>
@@ -372,7 +376,7 @@ end
<section id="logging"><title>Fonctions de journalisation</title>
-<example>
+<highlight language="lua">
-- exemples de messages de journalisation
r:trace1("Ceci est un message de journalisation de niveau
trace") -- les niveaux valides vont de trace1 à trace8 <br />
@@ -384,7 +388,7 @@ end
r:alert("Ceci est un message de journalisation de niveau alert")<br />
r:crit("Ceci est un message de journalisation de niveau crit")<br />
r:emerg("Ceci est un message de journalisation de niveau emerg")<br />
-</example>
+</highlight>
</section>
@@ -601,7 +605,9 @@ version 2.3.15 du serveur HTTP Apache.</
<example><pre>
# httpd.conf
LuaHookTranslateName /scripts/conf/hooks.lua silly_mapper
-
+</pre></example>
+
+<highlight language="lua">
-- /scripts/conf/hooks.lua --
require "apache2"
function silly_mapper(r)
@@ -612,7 +618,7 @@ function silly_mapper(r)
return apache2.DECLINED
end
end
-</pre></example>
+</highlight>
<note><title>Contexte</title><p>Cette directive ne peut être
utilisée ni à l'intérieur d'une section <directive type="section"
@@ -701,7 +707,7 @@ traitement de la requête. Cette di
implémenter une vérification arbitraire de l'authentification et de
l'autorisation. Voici un exemple très simple :
</p>
-<example><pre>
+<highlight language="lua">
require 'apache2'
-- fonction d'accroche authcheck fictive
@@ -734,7 +740,7 @@ function authcheck_hook(r)
end
return apache2.OK
end
-</pre></example>
+</highlight>
<note><title>Ordonnancement</title><p>Les arguments optionnels
"early" ou "late" permettent de contrôler le moment auquel ce script
s'exécute par rapport aux autres modules.</p></note>