w***@users.sourceforge.net
2018-11-03 01:56:54 UTC
Revision: 5819
http://sourceforge.net/p/svnbook/source/5819
Author: wuzhouhui
Date: 2018-11-03 01:56:45 +0000 (Sat, 03 Nov 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-10-31 14:40:14 UTC (rev 5818)
+++ branches/1.8/zh/book/ch06-server-configuration.xml 2018-11-03 01:56:45 UTC (rev 5819)
@@ -7744,16 +7744,26 @@
如果在访问规则文件里出现这些用户名, 文件将变得非常臃肿, 这些又长又
晦涩的用户名还很容易写错.</para>
+ <!--
<para>Fortunately, Subversion 1.5 introduced username aliases to
the access file syntax. Username aliases allow you to have to
type the correct complex username only once, in a statement
which assigns to it a more easily digestable alias.</para>
+ -->
+ <para>幸运的是, Subversion 1.5 为访问规则文件添加了对用户别名的支持.
+ 有了用户别名, 对于复杂的用户名, 管理员只需要在赋予别名的地方写一次
+ 就够了.</para>
+ <!--
<para>Username aliases are defined in the
special <literal>aliases</literal> section of the access file,
with each variable name in that section defining an alias, and
the value of those variables carrying the real Subversion
username which is being aliased.</para>
+ -->
+ <para>用户别名定义在访问规则文件的一个特殊的节—
+ <literal>aliases</literal>, 节内的每一个变量名都定义了一个别名, 而
+ 变量值则是真实的用户名.</para>
<informalexample>
<programlisting>
@@ -7765,11 +7775,16 @@
</programlisting>
</informalexample>
+ <!--
<para>Once you've defined a set of aliases, you can refer to the
users elsewhere in the access file via their aliases in all the
same places you could have instead used their actual usernames.
Simply prepend an ampersand to the alias to distinguish it from
a regular username:</para>
+ -->
+ <para>用户别名定义完成后, 在访问规则文件内, 只要是能出现真实用户名的
+ 地方都能用别名替代, 唯一的区别是要在别名前添加符号
+ <literal>&</literal>, 以便与真实的用户名进行区分.</para>
<informalexample>
<programlisting>
@@ -7780,11 +7795,16 @@
</programlisting>
</informalexample>
+ <!--
<para>You might also choose to use aliases if your users'
usernames change frequently. Doing so allows you to need to
update only the aliases table when these username changes occur,
instead of doing global search-and-replace operations on the
whole access file.</para>
+ -->
+ <para>如果用户名经常发生变化, 那么使用别名也能带来方便. 利用别名, 当
+ 用户名发生变化时, 只需要在定义别名的地方更新一次即可, 而不用在整个
+ 文件内搜索并替换.</para>
</sect2>
http://sourceforge.net/p/svnbook/source/5819
Author: wuzhouhui
Date: 2018-11-03 01:56:45 +0000 (Sat, 03 Nov 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-10-31 14:40:14 UTC (rev 5818)
+++ branches/1.8/zh/book/ch06-server-configuration.xml 2018-11-03 01:56:45 UTC (rev 5819)
@@ -7744,16 +7744,26 @@
如果在访问规则文件里出现这些用户名, 文件将变得非常臃肿, 这些又长又
晦涩的用户名还很容易写错.</para>
+ <!--
<para>Fortunately, Subversion 1.5 introduced username aliases to
the access file syntax. Username aliases allow you to have to
type the correct complex username only once, in a statement
which assigns to it a more easily digestable alias.</para>
+ -->
+ <para>幸运的是, Subversion 1.5 为访问规则文件添加了对用户别名的支持.
+ 有了用户别名, 对于复杂的用户名, 管理员只需要在赋予别名的地方写一次
+ 就够了.</para>
+ <!--
<para>Username aliases are defined in the
special <literal>aliases</literal> section of the access file,
with each variable name in that section defining an alias, and
the value of those variables carrying the real Subversion
username which is being aliased.</para>
+ -->
+ <para>用户别名定义在访问规则文件的一个特殊的节—
+ <literal>aliases</literal>, 节内的每一个变量名都定义了一个别名, 而
+ 变量值则是真实的用户名.</para>
<informalexample>
<programlisting>
@@ -7765,11 +7775,16 @@
</programlisting>
</informalexample>
+ <!--
<para>Once you've defined a set of aliases, you can refer to the
users elsewhere in the access file via their aliases in all the
same places you could have instead used their actual usernames.
Simply prepend an ampersand to the alias to distinguish it from
a regular username:</para>
+ -->
+ <para>用户别名定义完成后, 在访问规则文件内, 只要是能出现真实用户名的
+ 地方都能用别名替代, 唯一的区别是要在别名前添加符号
+ <literal>&</literal>, 以便与真实的用户名进行区分.</para>
<informalexample>
<programlisting>
@@ -7780,11 +7795,16 @@
</programlisting>
</informalexample>
+ <!--
<para>You might also choose to use aliases if your users'
usernames change frequently. Doing so allows you to need to
update only the aliases table when these username changes occur,
instead of doing global search-and-replace operations on the
whole access file.</para>
+ -->
+ <para>如果用户名经常发生变化, 那么使用别名也能带来方便. 利用别名, 当
+ 用户名发生变化时, 只需要在定义别名的地方更新一次即可, 而不用在整个
+ 文件内搜索并替换.</para>
</sect2>