ninja.po 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. msgid ""
  2. msgstr ""
  3. "X-Pootle-Revision: 9999999\n"
  4. "X-Pootle-Path: /zh_CN/lfs/chapter08/ninja.po\n"
  5. "Project-Id-Version: PACKAGE VERSION\n"
  6. "POT-Creation-Date: 2020-08-08 19:28+0800\n"
  7. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  8. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  9. "Language-Team: LANGUAGE <LL@li.org>\n"
  10. "Language: zh_CN\n"
  11. "MIME-Version: 1.0\n"
  12. "Content-Type: text/plain; charset=UTF-8\n"
  13. "Content-Transfer-Encoding: 8bit\n"
  14. "X-Generator: Translate Toolkit 2.2.5\n"
  15. #. type: Content of: <sect1><sect1info><address>
  16. #, no-wrap
  17. msgid "&ninja-url;"
  18. msgstr "&ninja-url;"
  19. #. type: Content of: <sect1><sect1info>
  20. msgid ""
  21. "<productname>ninja</productname> <productnumber>&ninja-version;</"
  22. "productnumber> <placeholder type=\"address\" id=\"0\"/>"
  23. msgstr ""
  24. "<productname>ninja</productname> <productnumber>&ninja-version;</"
  25. "productnumber> <placeholder type=\"address\" id=\"0\"/>"
  26. #. type: Content of: <sect1><title>
  27. msgid "Ninja-&ninja-version;"
  28. msgstr "Ninja-&ninja-version;"
  29. #. type: Content of: <sect1><indexterm><primary>
  30. msgid "Ninja"
  31. msgstr "Ninja"
  32. #. type: Content of: <sect1><sect2><para>
  33. msgid "Ninja is a small build system with a focus on speed."
  34. msgstr "Ninja 是一个注重速度的小型构建系统。"
  35. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  36. msgid "&buildtime;"
  37. msgstr "&buildtime;"
  38. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  39. msgid "&diskspace;"
  40. msgstr "&diskspace;"
  41. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  42. msgid "&ninja-fin-sbu;"
  43. msgstr "&ninja-fin-sbu;"
  44. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  45. msgid "&ninja-fin-du;"
  46. msgstr "&ninja-fin-du;"
  47. #. type: Content of: <sect1><sect2><tip><para>
  48. msgid ""
  49. "This section is not strictly required for LFS if not using systemd. On the "
  50. "other hand, ninja associated to meson makes a powerful build system "
  51. "combination, which is expected to be used more and more often. It is "
  52. "required for several packages in <ulink url=\"&blfs-book;\">the BLFS book</"
  53. "ulink>."
  54. msgstr ""
  55. "如果不使用 systemd,本节内容不是严格必要的。但是,ninja 和 meson 的组合构成一"
  56. "个强大的构建系统,预期它将被越来越广泛地使用。<ulink url=\"&blfs-book;"
  57. "\">BLFS 手册</ulink>中的一些软件包需要它。"
  58. #. type: Content of: <sect1><sect2><title>
  59. msgid "Installation of Ninja"
  60. msgstr "安装 Ninja"
  61. #. type: Content of: <sect1><sect2><para>
  62. msgid ""
  63. "When run, ninja normally runs a maximum number of processes in parallel. By "
  64. "default this is the number of cores on the system plus two. In some cases "
  65. "this can overheat a CPU or run a system out of memory. If run from the "
  66. "command line, passing a -jN parameter will limit the number of parallel "
  67. "processes, but some packages embed the execution of ninja and do not pass a -"
  68. "j parameter."
  69. msgstr ""
  70. "在运行时,ninja 一般尽量并行运行更多进程。默认情况下最大进程数是系统 CPU 核心"
  71. "数加 2 得到的值。某些情况下,这样会导致 CPU 过热,或者耗尽系统内存。如果使用"
  72. "命令行执行 ninja,可以传递 -jN 参数以限制并行进程数,但某些软件包内嵌了 "
  73. "ninja 的执行过程,且并不传递 -j 参数。"
  74. #. Using <command>
  75. #. here to make the output bold. We really don't want
  76. #. users setting this now and experience shows that many users blindly
  77. #. copy/paste anything in a box.
  78. #. type: Content of: <sect1><sect2><para><screen>
  79. #, no-wrap
  80. msgid "export NINJAJOBS=4"
  81. msgstr "export NINJAJOBS=4"
  82. #. type: Content of: <sect1><sect2><para>
  83. msgid ""
  84. "Using the <emphasis>optional</emphasis> procedure below allows a user to "
  85. "limit the number of parallel processes via an environment variable, "
  86. "NINJAJOBS. <command>For example</command>, setting: <placeholder type="
  87. "\"screen\" id=\"0\"/> will limit ninja to four parallel processes."
  88. msgstr ""
  89. "应用下面这个<emphasis>可选的</emphasis>修改,用户即可通过一个环境变量 "
  90. "NINJAJOBS 限制并行进程数量。<command>例如</command>设置:<placeholder type="
  91. "\"screen\" id=\"0\"/>会限制 ninja 使用 4 个并行进程。"
  92. #. type: Content of: <sect1><sect2><para>
  93. msgid ""
  94. "If desired, add the capability to use the environment variable NINJAJOBS by "
  95. "running:"
  96. msgstr ""
  97. "如果您希望 Ninja 能够使用环境变量 NINJAJOBS,执行以下命令,添加这一功能:"
  98. #. type: Content of: <sect1><sect2><screen>
  99. #, no-wrap
  100. msgid ""
  101. "<userinput remap=\"pre\">sed -i '/int Guess/a \\\n"
  102. " int j = 0;\\\n"
  103. " char* jobs = getenv( \"NINJAJOBS\" );\\\n"
  104. " if ( jobs != NULL ) j = atoi( jobs );\\\n"
  105. " if ( j > 0 ) return j;\\\n"
  106. "' src/ninja.cc</userinput>"
  107. msgstr ""
  108. "<userinput remap=\"pre\">sed -i '/int Guess/a \\\n"
  109. " int j = 0;\\\n"
  110. " char* jobs = getenv( \"NINJAJOBS\" );\\\n"
  111. " if ( jobs != NULL ) j = atoi( jobs );\\\n"
  112. " if ( j > 0 ) return j;\\\n"
  113. "' src/ninja.cc</userinput>"
  114. #. type: Content of: <sect1><sect2><para>
  115. msgid "Build Ninja with:"
  116. msgstr "构建 Ninja:"
  117. #. type: Content of: <sect1><sect2><screen>
  118. #, no-wrap
  119. msgid "<userinput remap=\"configure\">python3 configure.py --bootstrap</userinput>"
  120. msgstr "<userinput remap=\"configure\">python3 configure.py --bootstrap</userinput>"
  121. #. type: Content of: <sect1><sect2><variablelist><title>
  122. msgid "The meaning of the build option:"
  123. msgstr "构建选项的含义:"
  124. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  125. msgid "<parameter>--bootstrap</parameter>"
  126. msgstr "<parameter>--bootstrap</parameter>"
  127. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  128. msgid "This parameter forces ninja to rebuild itself for the current system."
  129. msgstr "这个参数强制 ninja 为当前系统重新构建自身。"
  130. #. type: Content of: <sect1><sect2><para>
  131. msgid "To test the results, issue:"
  132. msgstr "运行以下命令以测试编译结果:"
  133. #. type: Content of: <sect1><sect2><screen>
  134. #, no-wrap
  135. msgid ""
  136. "<userinput remap=\"test\">./ninja ninja_test\n"
  137. "./ninja_test --gtest_filter=-SubprocessTest.SetWithLots</userinput>"
  138. msgstr ""
  139. "<userinput remap=\"test\">./ninja ninja_test\n"
  140. "./ninja_test --gtest_filter=-SubprocessTest.SetWithLots</userinput>"
  141. #. type: Content of: <sect1><sect2><para>
  142. msgid "Install the package:"
  143. msgstr "安装该软件包:"
  144. #. type: Content of: <sect1><sect2><screen>
  145. #, no-wrap
  146. msgid ""
  147. "<userinput remap=\"install\">install -vm755 ninja /usr/bin/\n"
  148. "install -vDm644 misc/bash-completion /usr/share/bash-completion/completions/ninja\n"
  149. "install -vDm644 misc/zsh-completion /usr/share/zsh/site-functions/_ninja</userinput>"
  150. msgstr ""
  151. "<userinput remap=\"install\">install -vm755 ninja /usr/bin/\n"
  152. "install -vDm644 misc/bash-completion /usr/share/bash-completion/completions/ninja\n"
  153. "install -vDm644 misc/zsh-completion /usr/share/zsh/site-functions/_ninja</userinput>"
  154. #. type: Content of: <sect1><sect2><title>
  155. msgid "Contents of Ninja"
  156. msgstr "Ninja 的内容"
  157. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  158. msgid "Installed programs"
  159. msgstr "安装的程序"
  160. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>
  161. msgid "ninja"
  162. msgstr "ninja"
  163. #. type: Content of: <sect1><sect2><variablelist><bridgehead>
  164. msgid "Short Descriptions"
  165. msgstr "简要描述"
  166. #. type: Content of: <sect1><sect2><variablelist>
  167. msgid ""
  168. "<?dbfo list-presentation=\"list\"?> <?dbhtml list-presentation=\"table\"?>"
  169. msgstr ""
  170. "<?dbfo list-presentation=\"list\"?> <?dbhtml list-presentation=\"table\"?>"
  171. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  172. msgid "<command>ninja</command>"
  173. msgstr "<command>ninja</command>"
  174. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  175. msgid "is the Ninja build system."
  176. msgstr "是 ninja 构建系统。"