Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7d3de2b

Browse files
[po] auto sync
1 parent ab035e2 commit 7d3de2b

1 file changed

Lines changed: 23 additions & 7 deletions

File tree

library/zoneinfo.po

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ msgstr ""
9999
msgid ""
100100
"When converting from another time zone, the fold will be set to the correct "
101101
"value::"
102-
msgstr ""
102+
msgstr "当执行来自另一时区的转换时,fold 将被设置为正确的值::"
103103

104104
#: ../../library/zoneinfo.rst:89
105105
msgid "Data sources"
106-
msgstr ""
106+
msgstr "数据源"
107107

108108
#: ../../library/zoneinfo.rst:91
109109
msgid ""
@@ -116,10 +116,14 @@ msgid ""
116116
"system data nor tzdata are available, all calls to :class:`ZoneInfo` will "
117117
"raise :exc:`ZoneInfoNotFoundError`."
118118
msgstr ""
119+
"``zoneinfo`` 模块不直接提供时区数据,而是在可能的情况下从系统时区数据库或 PyPI 上的第一方包 `tzdata`_ 获取时区信息。 "
120+
"某些系统,重要的一点是 Windows 系统也包括在内,并没有可用的 IANA 数据库,因此对于要保证获取时区信息的跨平台兼容性的项目,推荐对 "
121+
"tzdata 声明依赖。 如果系统数据和 tzdata 均不可用,则所有对 :class:`ZoneInfo` 的调用都将引发 "
122+
":exc:`ZoneInfoNotFoundError`。"
119123

120124
#: ../../library/zoneinfo.rst:103
121125
msgid "Configuring the data sources"
122-
msgstr ""
126+
msgstr "配置数据源"
123127

124128
#: ../../library/zoneinfo.rst:105
125129
msgid ""
@@ -128,28 +132,34 @@ msgid ""
128132
"failure looks for a match in the tzdata package. This behavior can be "
129133
"configured in three ways:"
130134
msgstr ""
135+
"当 ``ZoneInfo(key)`` 被调用时,此构造器首先会在 :data:`TZPATH` 所指定的目录下搜索匹配 ``key`` "
136+
"的文件,失败时则会在 tzdata 包中查找匹配。 此行为可通过三种方式来配置:"
131137

132138
#: ../../library/zoneinfo.rst:110
133139
msgid ""
134140
"The default :data:`TZPATH` when not otherwise specified can be configured at"
135141
" :ref:`compile time <zoneinfo_data_compile_time_config>`."
136142
msgstr ""
143+
"默认的 :data:`TZPATH` 未通过其他方式指定时可在 :ref:`编译时 "
144+
"<zoneinfo_data_compile_time_config>` 进行配置。"
137145

138146
#: ../../library/zoneinfo.rst:112
139147
msgid ""
140148
":data:`TZPATH` can be configured using :ref:`an environment variable "
141149
"<zoneinfo_data_environment_var>`."
142-
msgstr ""
150+
msgstr ":data:`TZPATH` 可使用 :ref:`环境变量 <zoneinfo_data_environment_var>` 进行配置。"
143151

144152
#: ../../library/zoneinfo.rst:114
145153
msgid ""
146154
"At :ref:`runtime <zoneinfo_data_runtime_config>`, the search path can be "
147155
"manipulated using the :func:`reset_tzpath` function."
148156
msgstr ""
157+
"在 :ref:`运行时 <zoneinfo_data_runtime_config>`,搜索路径可使用 :func:`reset_tzpath` "
158+
"函数来修改。"
149159

150160
#: ../../library/zoneinfo.rst:120
151161
msgid "Compile-time configuration"
152-
msgstr ""
162+
msgstr "编译时配置"
153163

154164
#: ../../library/zoneinfo.rst:122
155165
msgid ""
@@ -162,16 +172,20 @@ msgid ""
162172
"``--with-tzpath``), which should be a string delimited by "
163173
":data:`os.pathsep`."
164174
msgstr ""
175+
"默认的 :data:`TZPATH` 包括一些时区数据库的通用布署位置(Windows 除外,该系统没有时区数据的“通用”位置)。 在 POSIX "
176+
"系统中,下游分发者和从源码编译 Python 的开发者知道系统时区数据布署位置,他们可以通过指定编译时选项 ``TZPATH`` (或者更常见的是通过 "
177+
"``configure`` 旗标 ``--with-tzpath``) 来改变默认的时区路径,该选项应当是一个由 :data:`os.pathsep` "
178+
"分隔的字符串。"
165179

166180
#: ../../library/zoneinfo.rst:130
167181
msgid ""
168182
"On all platforms, the configured value is available as the ``TZPATH`` key in"
169183
" :func:`sysconfig.get_config_var`."
170-
msgstr ""
184+
msgstr "在所有平台上,配置值会在 :func:`sysconfig.get_config_var` 中以 ``TZPATH`` 键的形式提供。"
171185

172186
#: ../../library/zoneinfo.rst:136
173187
msgid "Environment configuration"
174-
msgstr ""
188+
msgstr "环境配置"
175189

176190
#: ../../library/zoneinfo.rst:138
177191
msgid ""
@@ -180,6 +194,8 @@ msgid ""
180194
"will use the environment variable ``PYTHONTZPATH``, if it exists, to set the"
181195
" search path."
182196
msgstr ""
197+
"当初始化 :data:`TZPATH` 时(在导入时或不带参数调用 :func:`reset_tzpath` 时),``zoneinfo`` "
198+
"模块将使用环境变量 ``PYTHONTZPATH``,如果变量存在则会设置搜索路径。"
183199

184200
#: ../../library/zoneinfo.rst:145
185201
msgid ""

0 commit comments

Comments
 (0)