Parcourir la source

chapter04: Translate tools directory page

Xi Ruoyao il y a 7 ans
Parent
commit
024b140178
1 fichiers modifiés avec 37 ajouts et 12 suppressions
  1. 37 12
      chapter04/creatingtoolsdir.xml

+ 37 - 12
chapter04/creatingtoolsdir.xml

@@ -1,4 +1,4 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
+<?xml version="1.0" encoding="UTF-8"?>
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
@@ -8,9 +8,9 @@
 <sect1 id="ch-tools-creatingtoolsdir">
   <?dbhtml filename="creatingtoolsdir.html"?>
 
-  <title>Creating the $LFS/tools Directory</title>
+  <title>创建 $LFS/tools 目录</title>
 
-  <para>All programs compiled in <xref linkend="chapter-temporary-tools"/>
+  <!--para>All programs compiled in <xref linkend="chapter-temporary-tools"/>
   will be installed under <filename class="directory">$LFS/tools</filename>
   to keep them separate from the programs compiled in <xref
   linkend="chapter-building-system"/>. The programs compiled here are
@@ -18,31 +18,56 @@
   these programs in a separate directory, they can easily be discarded later
   after their use. This also prevents these programs from ending up in the
   host production directories (easy to do by accident in <xref
-  linkend="chapter-temporary-tools"/>).</para>
+  linkend="chapter-temporary-tools"/>).</para-->
+  <para><xref linkend="chapter-temporary-tools"/>
+	  中编译的所有程序都会被安装在
+	  <filename class="directory">$LFS/tools</filename>
+	  目录中,以便和 <xref linkend="chapter-building-system"/>
+	  中编译的程序分离开来。因为前者是临时工具,
+	  并不是最终的 LFS 系统的一部分,将它们保存在单独的目录树中,
+	  就可以在使用完后容易地删除。
+	  另外,这也可以防止它们被意外地安装在宿主环境中 (这种意外在
+	  <xref linkend="chapter-temporary-tools"/> 中容易发生)。</para>
 
-  <para>Create the required directory by running the following as
-  <systemitem class="username">root</systemitem>:</para>
+  <!--para>Create the required directory by running the following as
+  <systemitem class="username">root</systemitem>:</para-->
+  <para>以 <systemitem class="username">root</systemitem> 执行下列命令,
+	  以创建这个目录:</para>
 
 <screen><userinput>mkdir -v $LFS/tools</userinput></screen>
 
-  <para>The next step is to create a <filename class="symlink">/tools</filename>
+  <!--para>The next step is to create a <filename class="symlink">/tools</filename>
   symlink on the host system. This will point to the newly-created directory on
   the LFS partition. Run this command as <systemitem
-  class="username">root</systemitem> as well:</para>
+  class="username">root</systemitem> as well:</para-->
+  <para>下一步是在宿主系统中创建一个
+	  <filename class="symlink">/tools</filename> 符号链接。
+	  这个链接指向刚刚创建的,在 LFS 分区中的目录。以
+	  <systemitem class="username">root</systemitem> 身份执行下列命令:
+  </para>
 
 <screen><userinput>ln -sv $LFS/tools /</userinput></screen>
 
   <note>
-    <para>The above command is correct. The <command>ln</command> command
+    <!--para>The above command is correct. The <command>ln</command> command
     has a few syntactic variations, so be sure to check
     <command>info coreutils ln</command> and <filename>ln(1)</filename>
-    before reporting what you may think is an error.</para>
+    before reporting what you may think is an error.</para-->
+    <para>这个命令是正确的,<command>ln</command>命令的语法有一些变种。
+		请先阅读 <command>info coreutils ln</command> 和
+		<filename>ln(1)</filename>,而不是直接发邮件断言这是一个错误。
+	</para>
   </note>
 
-  <para>The created symlink enables the toolchain to be compiled so that it
+  <!--para>The created symlink enables the toolchain to be compiled so that it
   always refers to <filename class="directory">/tools</filename>, meaning
   that the compiler, assembler, and linker will work both in Chapter&nbsp;5
   (when we are still using some tools from the host) and in the next (when
-  we are <quote>chrooted</quote> to the LFS partition).</para>
+  we are <quote>chrooted</quote> to the LFS partition).</para-->
+  <para>这个符号链接允许临时工具链总是可以通过
+	  <filename class="directory">/tools</filename> 这个路径访问,
+	  这样,无论是在第 5 章(我们仍然需要使用宿主的一些工具)和第 6 章
+	  (我们已经 <quote>chroot</quote> 到 LFS 分区)中,它们都能正常工作。
+  </para>
 
 </sect1>