Browse Source

chapter06: Auto-translate attr.xml

Xi Ruoyao 7 years ago
parent
commit
e65503a10d
1 changed files with 11 additions and 11 deletions
  1. 11 11
      chapter06/attr.xml

+ 11 - 11
chapter06/attr.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"
 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
   <!ENTITY % general-entities SYSTEM "../general.ent">
   <!ENTITY % general-entities SYSTEM "../general.ent">
@@ -39,7 +39,7 @@
   </sect2>
   </sect2>
 
 
   <sect2 role="installation">
   <sect2 role="installation">
-    <title>Installation of Attr</title>
+    <title>安装Attr</title>
 
 
     <para>Modify the documentation directory so that it is a versioned
     <para>Modify the documentation directory so that it is a versioned
     directory:</para>
     directory:</para>
@@ -55,7 +55,7 @@
 
 
 <screen><userinput remap="pre">sed -i 's:{(:\\{(:' test/run</userinput></screen>
 <screen><userinput remap="pre">sed -i 's:{(:\\{(:' test/run</userinput></screen>
 
 
-    <para>Prepare Attr for compilation:</para>
+    <para>准备安装 Attr:</para>
 
 
 <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
 <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
             --bindir=/bin \
             --bindir=/bin \
@@ -64,18 +64,18 @@
 <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
 <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
             --disable-static</userinput></screen>
             --disable-static</userinput></screen>
 
 
-    <para>Compile the package:</para>
+    <para>编译该软件包:</para>
 
 
 <screen><userinput remap="make">make</userinput></screen>
 <screen><userinput remap="make">make</userinput></screen>
 
 
     <para>The tests need to be run on a filesystem that supports extended
     <para>The tests need to be run on a filesystem that supports extended
     attributes such as the ext2, ext3, or ext4 filesystems. The tests are also
     attributes such as the ext2, ext3, or ext4 filesystems. The tests are also
     known to fail if running multiple simultaneous tests (-j option greater than
     known to fail if running multiple simultaneous tests (-j option greater than
-    1).  To test the results, issue:</para>
+    1).  运行下列命令以测试编译结果:</para>
 
 
 <screen><userinput remap="test">make -j1 tests root-tests</userinput></screen>
 <screen><userinput remap="test">make -j1 tests root-tests</userinput></screen>
 
 
-    <para>Install the package:</para>
+    <para>安装该软件包:</para>
 
 
 <screen><userinput remap="install">make install install-dev install-lib
 <screen><userinput remap="install">make install install-dev install-lib
 chmod -v 755 /usr/lib/libattr.so</userinput></screen>
 chmod -v 755 /usr/lib/libattr.so</userinput></screen>
@@ -91,12 +91,12 @@ ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput
   </sect2>
   </sect2>
 
 
   <sect2 id="contents-attr" role="content">
   <sect2 id="contents-attr" role="content">
-    <title>Contents of Attr</title>
+    <title>Attr 的内容</title>
 
 
     <segmentedlist>
     <segmentedlist>
-      <segtitle>Installed programs</segtitle>
-      <segtitle>Installed library</segtitle>
-      <segtitle>Installed directories</segtitle>
+      <segtitle>安装的程序</segtitle>
+      <segtitle>安装的库</segtitle>
+      <segtitle>安装的目录</segtitle>
 
 
       <seglistitem>
       <seglistitem>
         <seg>attr, getfattr, and setattr</seg>
         <seg>attr, getfattr, and setattr</seg>
@@ -106,7 +106,7 @@ ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput
     </segmentedlist>
     </segmentedlist>
 
 
     <variablelist>
     <variablelist>
-      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
+      <bridgehead renderas="sect3">简要描述</bridgehead>
       <?dbfo list-presentation="list"?>
       <?dbfo list-presentation="list"?>
       <?dbhtml list-presentation="table"?>
       <?dbhtml list-presentation="table"?>