Skip to content

Commit 35718d8

Browse files
committed
翻译14.1 docguide.sgml
1 parent 098eb2d commit 35718d8

File tree

1 file changed

+47
-15
lines changed

1 file changed

+47
-15
lines changed

postgresql/doc/src/sgml/docguide.sgml

Lines changed: 47 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -274,14 +274,17 @@ ____________________________________________________________________________-->
274274
You can get away with not installing DocBook XML and the DocBook XSLT
275275
stylesheets locally, because the required files will be downloaded from the
276276
Internet and cached locally. This may in fact be the preferred solution if
277-
your operating system packages provide only an old version of especially
278-
the stylesheets or if no packages are available at all. See
279-
the <option>-&minus;nonet</option> option for <command>xmllint</command>
280-
and <command>xsltproc</command> for more information.
277+
your operating system packages provide only an old version of these files,
278+
or if no packages are available at all.
279+
If you want to prevent any attempt to access the Internet while building
280+
the documentation, you need to pass the <option>-&minus;nonet</option> option
281+
to <command>xmllint</command> and <command>xsltproc</command>; see below
282+
for an example.
281283
</para>
282284
____________________________________________________________________________-->
283285
<para>
284-
你可以在本地不安装DocBook XML和DocBook XSLT样式表的情况下开始工作,因为所需的文件将从Internet下载下来并且缓存在本地。如果你的操作系统包仅提供了旧版本的样式表或者根本就没有所需的包,那么这种方式实际上是最好的解决方案。更多信息请见<command>xmllint</command>和<command>xsltproc</command>的<option>--nonet</option>选项。
286+
你可以在本地不安装DocBook XML和DocBook XSLT样式表的情况下开始工作,因为所需的文件将从Internet下载下来并且缓存在本地。如果你的操作系统包仅提供这些文件的旧版本,或者根本没有可用的包,则这实际上可能是首选解决方案。
287+
如果你想在构建文档时阻止任何访问Internet的尝试,你需要将<option>--nonet</option>选项传递给<command>xmllint</command>和<command>xsltproc</command>;参见下面的示例。
285288
</para>
286289

287290
<sect2>
@@ -412,31 +415,60 @@ ____________________________________________________________________________-->
412415
<!--==========================orignal english content==========================
413416
<para>
414417
Before you can build the documentation you need to run the
415-
<filename>configure</filename> script as you would when building
418+
<filename>configure</filename> script, as you would when building
416419
the <productname>PostgreSQL</productname> programs themselves.
417-
Check the output near the end of the run, it should look something
420+
Check the output near the end of the run; it should look something
418421
like this:
419422
<screen>
420423
checking for xmllint... xmllint
421-
checking for DocBook XML V4.5... yes
422-
checking for dbtoepub... dbtoepub
423424
checking for xsltproc... xsltproc
424425
checking for fop... fop
426+
checking for dbtoepub... dbtoepub
427+
</screen>
428+
If <filename>xmllint</filename> or <filename>xsltproc</filename> is not
429+
found, you will not be able to build any of the documentation.
430+
<filename>fop</filename> is only needed to build the documentation in
431+
PDF format.
432+
<filename>dbtoepub</filename> is only needed to build the documentation
433+
in EPUB format.
434+
</para>
435+
436+
<para>
437+
If necessary, you can tell <filename>configure</filename> where to find
438+
these programs, for example
439+
<screen>
440+
./configure ... XMLLINT=/opt/local/bin/xmllint ...
441+
</screen>
442+
Also, if you want to ensure that <filename>xmllint</filename>
443+
and <filename>xsltproc</filename> will not perform any network access,
444+
you can do something like
445+
<screen>
446+
./configure ... XMLLINT="xmllint -&minus;nonet" XSLTPROC="xsltproc -&minus;nonet" ...
425447
</screen>
426-
If <filename>xmllint</filename> was not found then some of the following
427-
tests will be skipped.
428448
</para>
429449
____________________________________________________________________________-->
430450
<para>
431-
在你能编译文档之前,你需要运行<filename>configure</filename>脚本,就像你在编译<productname>PostgreSQL</productname>程序本身时所作的那样。检查运行末尾附近的输出,应该看起来像这样
451+
在你能编译文档之前,你需要运行<filename>configure</filename>脚本,就像你在编译<productname>PostgreSQL</productname>程序本身时所作的那样。检查运行末尾附近的输出;它应该看起来像这样
432452
<screen>
433453
checking for xmllint... xmllint
434-
checking for DocBook XML V4.5... yes
435-
checking for dbtoepub... dbtoepub
436454
checking for xsltproc... xsltproc
437455
checking for fop... fop
456+
checking for dbtoepub... dbtoepub
457+
</screen>
458+
如果未找到<filename>xmllint</filename>或<filename>xsltproc</filename>,你将无法构建任何文档<filename>fop</filename>仅用于在中构建文档
459+
PDF格式。
460+
<filename>dbtoepub</filename>仅用于以EPUB格式构建文档。
461+
</para>
462+
463+
<para>
464+
如果需要,你可以告诉<filename>configure</filename>到哪里去找这些程序,例如
465+
<screen>
466+
./configure ... XMLLINT=/opt/local/bin/xmllint ...
467+
</screen>
468+
另外,如果你想确认<filename>xmllint</filename>和<filename>xsltproc</filename>不会执行任何网络访问,你可以如下操作
469+
<screen>
470+
./configure ... XMLLINT="xmllint --nonet" XSLTPROC="xsltproc --nonet" ...
438471
</screen>
439-
如果没有找到<filename>xmllint</filename>,那么一些后续测试将被跳过。
440472
</para>
441473

442474
</sect2>

0 commit comments

Comments
 (0)