ninja.po 9.2 KB

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