浏览代码

chapter06: Translate Readline instruction

Xi Ruoyao 7 年之前
父节点
当前提交
eaf110b1ff
共有 1 个文件被更改,包括 16 次插入14 次删除
  1. 16 14
      chapter06/readline.xml

+ 16 - 14
chapter06/readline.xml

@@ -23,8 +23,7 @@
   <sect2 role="package">
     <title/>
 
-    <para>The Readline package is a set of libraries that offers command-line
-    editing and history capabilities.</para>
+    <para>Readline 软件包包含一些提供命令行编辑和历史记录功能的库。</para>
 
     <segmentedlist>
       <segtitle>&buildtime;</segtitle>
@@ -41,10 +40,14 @@
   <sect2 role="installation">
     <title>安装Readline</title>
 
-    <para>Reinstalling Readline will cause the old libraries to be moved to
+    <!--para>Reinstalling Readline will cause the old libraries to be moved to
     &lt;libraryname&gt;.old. While this is normally not a problem, in some cases
     it can trigger a linking bug in <command>ldconfig</command>. This can be
-    avoided by issuing the following two seds:</para>
+    avoided by issuing the following two seds:</para-->
+    <para>重新安装 Readline 会导致旧版本的库被重命名为
+		&lt;库名称&gt;old 。这一般不是问题,但某些情况下会触发
+		<command>ldconfig</command> 的一个链接 bug 。
+		运行下列两条 sed 命令防止这种情况:</para>
 
 <screen><userinput remap="pre">sed -i '/MV.*old/d' Makefile.in
 sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
@@ -60,13 +63,13 @@ sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
 <screen><userinput remap="make">make SHLIB_LIBS="-L/tools/lib -lncursesw"</userinput></screen>
 
     <variablelist>
-      <title>The meaning of the make option:</title>
+      <title>make 命令选项的含义</title>
 
       <varlistentry>
         <term><parameter>SHLIB_LIBS="-L/tools/lib -lncursesw"</parameter></term>
         <listitem>
-          <para>This option forces Readline to link against the
-          <filename class="libraryfile">libncursesw</filename> library.</para>
+          <para>该选项强制 Readline 链接到
+          <filename class="libraryfile">libncursesw</filename> 库。</para>
         </listitem>
       </varlistentry>
 
@@ -78,14 +81,15 @@ sed -i '/{OLDSUFF}/c:' support/shlib-install</userinput></screen>
 
 <screen><userinput remap="install">make SHLIB_LIBS="-L/tools/lib -lncurses" install</userinput></screen>
 
-    <para>Now move the dynamic libraries to a more appropriate location
-    and fix up some symbolic links:</para>
+    <!--para>Now move the dynamic libraries to a more appropriate location
+    and fix up some symbolic links:</para-->
+	<para>下面将动态库移动到更合适的位置,并修复一些符号链接:</para>
 
 <screen><userinput remap="install">mv -v /usr/lib/lib{readline,history}.so.* /lib
 ln -sfv ../../lib/$(readlink /usr/lib/libreadline.so) /usr/lib/libreadline.so
 ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so</userinput></screen>
 
-    <para>If desired, install the documentation:</para>
+    <para>如果您希望的话,可以安装文档:</para>
 
 <screen><userinput remap="install">install -v -m644 doc/*.{ps,pdf,html,dvi} /usr/share/doc/readline-&readline-version;</userinput></screen>
 
@@ -113,8 +117,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so</us
       <varlistentry id="libhistory">
         <term><filename class="libraryfile">libhistory</filename></term>
         <listitem>
-          <para>Provides a consistent user interface for recalling lines
-          of history</para>
+          <para>提供一个查询之前输入行的一致用户接口</para>
           <indexterm zone="ch-system-readline libhistory">
             <primary sortas="c-libhistory">libhistory</primary>
           </indexterm>
@@ -124,8 +127,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libhistory.so ) /usr/lib/libhistory.so</us
       <varlistentry id="libreadline">
         <term><filename class="libraryfile">libreadline</filename></term>
         <listitem>
-          <para>Provides a set of commands for manipulating text entered in an
-          interactive session of a program.</para>
+          <para>提供一组在程序的交互会话中操纵输入的文本的命令</para>
           <indexterm zone="ch-system-readline libreadline">
             <primary sortas="c-libreadline">libreadline</primary>
           </indexterm>