1
0

ninja.po 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  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 "如果不使用 systemd,本节内容不是严格必要的。但是,ninja 和 meson "
  63. "的组合构成一个强大的构建系统,预期它将被越来越广泛地使用。"
  64. "<ulink url=\"&blfs-book;\">BLFS 手册</ulink>中的一些软件包需要它。"
  65. #. type: Content of: <sect1><sect2><title>
  66. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:50
  67. msgid "Installation of Ninja"
  68. msgstr "安装 Ninja"
  69. #. type: Content of: <sect1><sect2><para>
  70. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:52
  71. msgid ""
  72. "When run, ninja normally runs a maximum number of processes in parallel. By "
  73. "default this is the number of cores on the system plus two. In some cases "
  74. "this can overheat a CPU or run a system out of memory. If run from the "
  75. "command line, passing a -jN parameter will limit the number of parallel "
  76. "processes, but some packages embed the execution of ninja and do not pass a -"
  77. "j parameter."
  78. msgstr ""
  79. "在运行时,ninja 一般尽量并行运行更多进程。默认情况下最大进程数是系统 CPU "
  80. "核心数加 2 得到的值。某些情况下,这样会导致 CPU 过热,或者耗尽系统内存。"
  81. "如果使用命令行执行 ninja,可以传递 -jN 参数以限制并行进程数,但某些软件包内"
  82. "嵌了 ninja 的执行过程,且并不传递 -j 参数。"
  83. #. Using <command>
  84. #. here to make the output bold. We really don't want
  85. #. users setting this now and experience shows that many users blindly
  86. #. copy/paste anything in a box.
  87. #. type: Content of: <sect1><sect2><para><screen>
  88. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:67
  89. #, no-wrap
  90. msgid "export NINJAJOBS=4"
  91. msgstr "export NINJAJOBS=4"
  92. #. type: Content of: <sect1><sect2><para>
  93. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:59
  94. msgid ""
  95. "Using the <emphasis>optional</emphasis> procedure below allows a user to "
  96. "limit the number of parallel processes via an environment variable, "
  97. "NINJAJOBS. <command>For example</command>, setting: <placeholder type="
  98. "\"screen\" id=\"0\"/> will limit ninja to four parallel processes."
  99. msgstr ""
  100. "应用下面这个<emphasis>可选的</emphasis>修改,用户即可通过一个环境变量 "
  101. "NINJAJOBS 限制并行进程数量。<command>例如</command>设置:<placeholder type="
  102. "\"screen\" id=\"0\"/>会限制 ninja 使用 4 个并行进程。"
  103. #. type: Content of: <sect1><sect2><para>
  104. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:71
  105. msgid ""
  106. "If desired, add the capability to use the environment variable NINJAJOBS by "
  107. "running:"
  108. msgstr ""
  109. "如果您希望 Ninja 能够使用环境变量 NINJAJOBS,执行以下命令,添加这一功能:"
  110. #. type: Content of: <sect1><sect2><screen>
  111. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:74
  112. #, no-wrap
  113. msgid ""
  114. "<userinput remap=\"pre\">sed -i '/int Guess/a \\\n"
  115. " int j = 0;\\\n"
  116. " char* jobs = getenv( \"NINJAJOBS\" );\\\n"
  117. " if ( jobs != NULL ) j = atoi( jobs );\\\n"
  118. " if ( j > 0 ) return j;\\\n"
  119. "' src/ninja.cc</userinput>"
  120. msgstr ""
  121. "<userinput remap=\"pre\">sed -i '/int Guess/a \\\n"
  122. " int j = 0;\\\n"
  123. " char* jobs = getenv( \"NINJAJOBS\" );\\\n"
  124. " if ( jobs != NULL ) j = atoi( jobs );\\\n"
  125. " if ( j > 0 ) return j;\\\n"
  126. "' src/ninja.cc</userinput>"
  127. #. type: Content of: <sect1><sect2><para>
  128. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:81
  129. msgid "Build Ninja with:"
  130. msgstr "构建 Ninja:"
  131. #. type: Content of: <sect1><sect2><screen>
  132. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:83
  133. #, no-wrap
  134. msgid "<userinput remap=\"configure\">python3 configure.py --bootstrap</userinput>"
  135. msgstr "<userinput remap=\"configure\">python3 configure.py --bootstrap</userinput>"
  136. #. type: Content of: <sect1><sect2><variablelist><title>
  137. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:86
  138. msgid "The meaning of the build option:"
  139. msgstr "构建选项的含义:"
  140. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  141. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:89
  142. msgid "<parameter>--bootstrap</parameter>"
  143. msgstr "<parameter>--bootstrap</parameter>"
  144. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  145. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:91
  146. msgid "This parameter forces ninja to rebuild itself for the current system."
  147. msgstr "这个参数强制 ninja 为当前系统重新构建自身。"
  148. #. type: Content of: <sect1><sect2><para>
  149. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:98
  150. msgid "To test the results, issue:"
  151. msgstr "运行以下命令以测试编译结果:"
  152. #. type: Content of: <sect1><sect2><screen>
  153. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:100
  154. #, no-wrap
  155. msgid ""
  156. "<userinput remap=\"test\">./ninja ninja_test\n"
  157. "./ninja_test --gtest_filter=-SubprocessTest.SetWithLots</userinput>"
  158. msgstr ""
  159. "<userinput remap=\"test\">./ninja ninja_test\n"
  160. "./ninja_test --gtest_filter=-SubprocessTest.SetWithLots</userinput>"
  161. #. type: Content of: <sect1><sect2><para>
  162. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:103
  163. msgid "Install the package:"
  164. msgstr "安装该软件包:"
  165. #. type: Content of: <sect1><sect2><screen>
  166. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:105
  167. #, no-wrap
  168. msgid ""
  169. "<userinput remap=\"install\">install -vm755 ninja /usr/bin/\n"
  170. "install -vDm644 misc/bash-completion /usr/share/bash-completion/completions/ninja\n"
  171. "install -vDm644 misc/zsh-completion /usr/share/zsh/site-functions/_ninja</userinput>"
  172. msgstr ""
  173. "<userinput remap=\"install\">install -vm755 ninja /usr/bin/\n"
  174. "install -vDm644 misc/bash-completion /usr/share/bash-completion/completions/ninja\n"
  175. "install -vDm644 misc/zsh-completion /usr/share/zsh/site-functions/_ninja</userinput>"
  176. #. type: Content of: <sect1><sect2><title>
  177. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:112
  178. msgid "Contents of Ninja"
  179. msgstr "Ninja 的内容"
  180. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  181. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:115
  182. msgid "Installed programs"
  183. msgstr "安装的程序"
  184. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>
  185. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:118
  186. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:131
  187. msgid "ninja"
  188. msgstr "ninja"
  189. #. type: Content of: <sect1><sect2><variablelist><bridgehead>
  190. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:122
  191. msgid "Short Descriptions"
  192. msgstr "简要描述"
  193. #. type: Content of: <sect1><sect2><variablelist>
  194. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:123
  195. msgid ""
  196. "<?dbfo list-presentation=\"list\"?> <?dbhtml list-presentation=\"table\"?>"
  197. msgstr ""
  198. "<?dbfo list-presentation=\"list\"?> <?dbhtml list-presentation=\"table\"?>"
  199. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  200. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:127
  201. msgid "<command>ninja</command>"
  202. msgstr "<command>ninja</command>"
  203. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  204. #: /home/xry111/svn-repos/LFS-BOOK/chapter08/ninja.xml:129
  205. msgid "is the Ninja build system."
  206. msgstr "是 ninja 构建系统。"