ninja.po 7.6 KB

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