clock.po 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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><title>
  14. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:11
  15. msgid "Configuring the system clock"
  16. msgstr "配置系统时钟"
  17. #. type: Content of: <sect1><indexterm><primary>
  18. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:14
  19. msgid "clock"
  20. msgstr "clock"
  21. #. type: Content of: <sect1><indexterm><secondary>
  22. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:15
  23. msgid "configuring"
  24. msgstr "configuring"
  25. #. type: Content of: <sect1><para>
  26. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:17
  27. msgid ""
  28. "This section discusses how to configure the <command>systemd-timedated</"
  29. "command> system service, which configures the system clock and timezone."
  30. msgstr ""
  31. "本节讨论如何配置 <command>systemd-timedated</command> 系统服务,它的作用是配"
  32. "置系统时钟和时区。"
  33. #. type: Content of: <sect1><para>
  34. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:21
  35. msgid ""
  36. "If you cannot remember whether or not the hardware clock is set to UTC, find "
  37. "out by running the <userinput>hwclock --localtime --show</userinput> "
  38. "command. This will display what the current time is according to the "
  39. "hardware clock. If this time matches whatever your watch says, then the "
  40. "hardware clock is set to local time. If the output from <command>hwclock</"
  41. "command> is not local time, chances are it is set to UTC time. Verify this "
  42. "by adding or subtracting the proper amount of hours for the timezone to the "
  43. "time shown by <command>hwclock</command>. For example, if you are currently "
  44. "in the MST timezone, which is also known as GMT -0700, add seven hours to "
  45. "the local time."
  46. msgstr ""
  47. "如果您不确定您的硬件时钟是否设置为 UTC,运行 <userinput>hwclock --localtime "
  48. "--show</userinput> 命令,它会显示硬件时钟给出的当前时间。如果这个时间和您的手"
  49. "表显示的一致,则说明硬件时钟被设定为本地时间。相反,如果 <command>hwclock</"
  50. "command> 输出的时间不是本地时间,则硬件时钟很可能被设定为 UTC 时间。根据您的"
  51. "时区,在 <command>hwclock</command> 显示的时间上加减对应的小时数,进行进一步"
  52. "的验证。例如,如果您现在处于莫斯科时区,即 GMT -0700,在本地时间上加 7 小"
  53. "时,再进行比较。"
  54. #. type: Content of: <sect1><para>
  55. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:32
  56. msgid ""
  57. "<command>systemd-timedated</command> reads <filename>/etc/adjtime</"
  58. "filename>, and depending on the contents of the file, sets the clock to "
  59. "either UTC or local time."
  60. msgstr ""
  61. "<command>systemd-timedated</command> 读取 <filename>/etc/adjtime</filename>,"
  62. "并根据其内容将硬件时钟设定为 UTC 或本地时间。"
  63. #. type: Content of: <sect1><para>
  64. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:36
  65. msgid ""
  66. "Create the <filename>/etc/adjtime</filename> file with the following "
  67. "contents if your hardware clock is set to local time:"
  68. msgstr ""
  69. "果您的硬件时钟设置为本地时间,以下列内容创建 <filename>/etc/adjtime</"
  70. "filename> 文件:"
  71. #. type: Content of: <sect1><screen>
  72. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:39
  73. #, no-wrap
  74. msgid ""
  75. "<userinput>cat &gt; /etc/adjtime &lt;&lt; \"EOF\"\n"
  76. "<literal>0.0 0 0.0\n"
  77. "0\n"
  78. "LOCAL</literal>\n"
  79. "EOF</userinput>"
  80. msgstr ""
  81. "<userinput>cat &gt; /etc/adjtime &lt;&lt; \"EOF\"\n"
  82. "<literal>0.0 0 0.0\n"
  83. "0\n"
  84. "LOCAL</literal>\n"
  85. "EOF</userinput>"
  86. #. type: Content of: <sect1><para>
  87. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:45
  88. msgid ""
  89. "If <filename>/etc/adjtime</filename> isn't present at first boot, "
  90. "<command>systemd-timedated</command> will assume that hardware clock is set "
  91. "to UTC and adjust the file according to that."
  92. msgstr ""
  93. "如果 <filename>/etc/adjtime</filename> 在初次引导时不存在,<command>systemd-"
  94. "timedated</command> 会假设硬件时钟使用 UTC,并据此调整该文件。"
  95. #. type: Content of: <sect1><para>
  96. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:49
  97. msgid ""
  98. "You can also use the <command>timedatectl</command> utility to tell "
  99. "<command>systemd-timedated</command> if your hardware clock is set to UTC or "
  100. "local time:"
  101. msgstr ""
  102. "您也可以使用 <command>timedatectl</command> 工具告诉 <command>systemd-"
  103. "timedated</command> 您的硬件时钟是 UTC 还是本地时间:"
  104. #. type: Content of: <sect1><screen>
  105. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:53
  106. #, no-wrap
  107. msgid "<userinput>timedatectl set-local-rtc 1</userinput>"
  108. msgstr "<userinput>timedatectl set-local-rtc 1</userinput>"
  109. #. type: Content of: <sect1><para>
  110. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:55
  111. msgid ""
  112. "<command>timedatectl</command> can also be used to change system time and "
  113. "time zone."
  114. msgstr "<command>timedatectl</command> 也能修改系统时间和时区。"
  115. #. type: Content of: <sect1><para>
  116. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:58
  117. msgid "To change your current system time, issue:"
  118. msgstr "如果要修改系统时间,执行以下命令:"
  119. #. type: Content of: <sect1><screen>
  120. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:60
  121. #, no-wrap
  122. msgid "<userinput>timedatectl set-time YYYY-MM-DD HH:MM:SS</userinput>"
  123. msgstr "<userinput>timedatectl set-time YYYY-MM-DD HH:MM:SS</userinput>"
  124. #. type: Content of: <sect1><para>
  125. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:62
  126. msgid "The hardware clock will also be updated accordingly."
  127. msgstr "硬件时钟也会同时被更新。"
  128. #. type: Content of: <sect1><para>
  129. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:64
  130. msgid "To change your current time zone, issue:"
  131. msgstr "要修改当前时区,执行以下命令:"
  132. #. type: Content of: <sect1><screen>
  133. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:66
  134. #, no-wrap
  135. msgid "<userinput>timedatectl set-timezone TIMEZONE</userinput>"
  136. msgstr "<userinput>timedatectl set-timezone TIMEZONE</userinput>"
  137. #. type: Content of: <sect1><para>
  138. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:68
  139. msgid "You can get a list of available time zones by running:"
  140. msgstr "您可以通过运行以下命令查看可用的时区列表:"
  141. #. type: Content of: <sect1><screen>
  142. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:70
  143. #, no-wrap
  144. msgid "<userinput>timedatectl list-timezones</userinput>"
  145. msgstr "<userinput>timedatectl list-timezones</userinput>"
  146. #. type: Content of: <sect1><note><para>
  147. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:72
  148. msgid ""
  149. "Please note that the <command>timedatectl</command> command can be used only "
  150. "on a system booted with systemd."
  151. msgstr "注意 <command>timedatectl</command> 命令只能用于 systemd 引导的系统。"
  152. #. type: Content of: <sect1><sect2><title>
  153. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:76
  154. msgid "Network Time Synchronization"
  155. msgstr "网络时钟同步"
  156. #. type: Content of: <sect1><sect2><para>
  157. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:78
  158. msgid ""
  159. "Starting with version 213, systemd ships a daemon called <command>systemd-"
  160. "timesyncd</command> which can be used to synchronize the system time with "
  161. "remote NTP servers."
  162. msgstr ""
  163. "从版本 213 开始,systemd 附带了一个名为 <command>systemd-timesyncd</command> "
  164. "的守护程序,可以用于将系统时间与远程 NTP 服务器同步。"
  165. #. type: Content of: <sect1><sect2><para>
  166. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:82
  167. msgid ""
  168. "The daemon is not intended as a replacement for the well established NTP "
  169. "daemon, but as a client only implementation of the SNTP protocol which can "
  170. "be used for less advanced tasks and on resource limited systems."
  171. msgstr ""
  172. "该守护程序没有被设计为替代现有成熟的 NTP 守护程序,而是一个仅仅实现了 SNTP 协"
  173. "议的客户端,可以用于一些不太复杂的任务,或是资源紧张的系统。"
  174. #. type: Content of: <sect1><sect2><para>
  175. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:87
  176. msgid ""
  177. "Starting with systemd version 216, the <command>systemd-timesyncd</command> "
  178. "daemon is enabled by default. If you want to disable it, issue the following "
  179. "command:"
  180. msgstr ""
  181. "从 systemd 版本 216 开始,<command>systemd-timesyncd</command> 守护进程被默认"
  182. "启用。如果希望禁用它,执行以下命令:"
  183. #. type: Content of: <sect1><sect2><screen>
  184. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:92
  185. #, no-wrap
  186. msgid "<userinput>systemctl disable systemd-timesyncd</userinput>"
  187. msgstr "<userinput>systemctl disable systemd-timesyncd</userinput>"
  188. #. type: Content of: <sect1><sect2><para>
  189. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:94
  190. msgid ""
  191. "The <filename>/etc/systemd/timesyncd.conf</filename> file can be used to "
  192. "change the NTP servers that <command>systemd-timesyncd</command> "
  193. "synchronizes with."
  194. msgstr ""
  195. "可以在 <filename>/etc/systemd/timesyncd.conf</filename> 中修改 "
  196. "<command>systemd-timesyncd</command> 使用的服务器。"
  197. #. type: Content of: <sect1><sect2><para>
  198. #: /home/xry111/svn-repos/LFS-BOOK/chapter09/clock.xml:98
  199. msgid ""
  200. "Please note that when system clock is set to Local Time, <command>systemd-"
  201. "timesyncd</command> won't update hardware clock."
  202. msgstr ""
  203. "注意,当系统时钟设定为本地时间时,<command>systemd-timesyncd</command> 不会更"
  204. "新硬件时钟。"