[svnbook] r5775 committed - branches/1.8/zh/book/ ch06-server-configuration.xml

wuzhouhui at users.sourceforge.net wuzhouhui at users.sourceforge.net
Thu Sep 13 23:50:07 CDT 2018


Revision: 5775
          http://sourceforge.net/p/svnbook/source/5775
Author:   wuzhouhui
Date:     2018-09-14 04:50:04 +0000 (Fri, 14 Sep 2018)
Log Message:
-----------
1.8/zh: translation of chapter 6 in progress

Modified Paths:
--------------
    branches/1.8/zh/book/ch06-server-configuration.xml

Modified: branches/1.8/zh/book/ch06-server-configuration.xml
===================================================================
--- branches/1.8/zh/book/ch06-server-configuration.xml	2018-09-13 21:02:46 UTC (rev 5774)
+++ branches/1.8/zh/book/ch06-server-configuration.xml	2018-09-14 04:50:04 UTC (rev 5775)
@@ -5558,6 +5558,7 @@
 </programlisting>
         </informalexample>
 
+      <!--
         <para>In this example, we're asking Apache to create a special
           logfile, <filename>svn_logfile</filename>, in the standard
           Apache <filename>logs</filename> directory.
@@ -5569,10 +5570,24 @@
           the <literal>SVN-ACTION</literal> environment variable,
           which is automatically set by <command>mod_dav_svn</command>
           whenever it detects a high-level client action.</para>
+      -->
+        <para>在上面的例子里, 我们请求 Apache 在标准的 <filename>log</filename>
+          目录下创建一个特殊的日志文件: <filename>svn_logfile</filename>. 变
+          量 <literal>%t</literal> 和 <literal>%u</literal> 分别被替换为请求
+          接到的时间和用户名, 但其中最需要关注的是出现两次的
+          <literal>SVN-ACTION</literal>.当 Apache 看见
+          <literal>SVN-ACTION</literal> 时, 它把该字符串替换为环境变量
+          <literal>SVN-ACTION</literal> 的值, 每当
+          <command>mod_dav_svn</command> 检测到一个客户端操作时, 它就自动设置
+          环境变量 <literal>SVN-ACTION</literal> 的值.</para>
 
+      <!--
         <para>So, instead of having to interpret a
           traditional <filename>access_log</filename> like
           this:</para>
+      -->
+        <para>所以说, 我们不用面对像下面这样复杂的
+          <filename>access_log</filename>:</para>
 
         <informalexample>
           <programlisting>
@@ -5586,9 +5601,13 @@
 </programlisting>
         </informalexample>
 
+      <!--
         <para>you can peruse a much more
           intelligible <filename>svn_logfile</filename> like
           this:</para>
+      -->
+        <para>你完全可以追求更容易理解的 <filename>svn_logfile</filename>:
+        </para>
 
         <informalexample>
           <programlisting>




More information about the svnbook-dev mailing list