@@ -11,7 +11,7 @@ msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.12\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2024-05-11 19:07 +0000\n "
14
+ "POT-Creation-Date : 2024-06-20 07:11 +0000\n "
15
15
"PO-Revision-Date : 2024-05-11 00:33+0000\n "
16
16
"Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2024\n "
17
17
"Language-Team : Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n "
@@ -48,11 +48,11 @@ msgid ""
48
48
msgstr ""
49
49
"``importlib.metadata`` 是一个提供对已安装的 `分发包 "
50
50
"<https://packaging.python.org/en/latest/glossary/#term-Distribution-"
51
- "Package>`_ 的元数据的访问的库,如其入口点或其最高层级名称 (`导入包 "
51
+ "Package>`_ 的元数据的访问的库,如其入口点或其顶层名称 (`导入包 "
52
52
"<https://packaging.python.org/en/latest/glossary/#term-Import-Package>`_, "
53
53
"模块等,如果存在的话)。 这个库部分构建于 Python 的导入系统之上,其目标是取代 ``pkg_resources`` 的中的 `entry "
54
- "point API`_ 和 `metadata API`_。 配合 :mod:`importlib.resources` "
55
- ",这个包可以消除使用较老旧且低效的 ``pkg_resources`` 包的必要性 。"
54
+ "point API`_ 和 `metadata API`_。 配合 :mod:`importlib.resources` ,这个包使得较老旧且低效的 "
55
+ "``pkg_resources`` 包不再必要 。"
56
56
57
57
#: ../../library/importlib.metadata.rst:27
58
58
msgid ""
@@ -64,10 +64,10 @@ msgid ""
64
64
"<https://packaging.python.org/en/latest/specifications/core-metadata/#core-"
65
65
"metadata>`_."
66
66
msgstr ""
67
- "``importlib.metadata`` 对通过 :pypi:`pip` 之类的工具安装到 Python 的 ``site-packages`` "
68
- "目录的第三方 *分发包* 进行操作。 具体来说,它适用于带有可发现的 ``dist-info`` 或 ``egg-info`` 目录,以及由 "
67
+ "``importlib.metadata`` 对 :pypi:`pip` 等工具安装到 Python 的 ``site-packages`` "
68
+ "目录的第三方 *分发包* 进行操作。 具体来说,适用的分发包应带有可发现的 ``dist-info`` 或 ``egg-info`` 目录,以及 "
69
69
"`核心元数据规范说明 <https://packaging.python.org/en/latest/specifications/core-"
70
- "metadata/#core-metadata>`_ 所定义的元数据的分发包 。"
70
+ "metadata/#core-metadata>`_ 定义的元数据 。"
71
71
72
72
#: ../../library/importlib.metadata.rst:36
73
73
msgid ""
@@ -86,8 +86,7 @@ msgid ""
86
86
"archives on :data:`sys.path`. Through an extension mechanism, the metadata "
87
87
"can live almost anywhere."
88
88
msgstr ""
89
- "在默认情况下,分发包元数据可以存在于 :data:`sys.path` 下的文件系统或 zip 归档文件中。 "
90
- "通过一个扩展机制,元数据可以存在于几乎任何地方。"
89
+ "分发包元数据默认可存在于 :data:`sys.path` 下的文件系统或 zip 归档文件中。通过一个扩展机制,元数据可以存在于几乎任何地方。"
91
90
92
91
#: ../../library/importlib.metadata.rst:55
93
92
msgid "https://importlib-metadata.readthedocs.io/"
@@ -102,10 +101,9 @@ msgid ""
102
101
"metadata.readthedocs.io/en/latest/migration.html>`__ for existing users of "
103
102
"``pkg_resources``."
104
103
msgstr ""
105
- "``importlib_metadata`` 的文档,它提供了对 ``importlib.metadata`` 的向下移植。 这包含该模块的类和函数的 "
106
- "`API 引用 <https://importlib-"
107
- "metadata.readthedocs.io/en/latest/api.html>`__,以及针对 ``pkg_resources`` 现有用户的 "
108
- "`迁移指南 <https://importlib-"
104
+ "``importlib_metadata`` 的文档,它向下移植了 ``importlib.metadata``。它包含该模块的类和函数的 `API "
105
+ "参考 <https://importlib-metadata.readthedocs.io/en/latest/api.html>`__,以及针对 "
106
+ "``pkg_resources`` 现有用户的 `迁移指南 <https://importlib-"
109
107
"metadata.readthedocs.io/en/latest/migration.html>`__。"
110
108
111
109
#: ../../library/importlib.metadata.rst:67
@@ -121,7 +119,7 @@ msgid ""
121
119
msgstr ""
122
120
"让我们假设你想要获取你使用 ``pip`` 安装的某个 `分发包 "
123
121
"<https://packaging.python.org/en/latest/glossary/#term-Distribution-"
124
- "Package>`_ 的版本字符串。 我们首先创建一个虚拟环境并在其中安装一些软件包: "
122
+ "Package>`_ 的版本字符串。我们首先创建一个虚拟环境并在其中安装一些软件包: "
125
123
126
124
#: ../../library/importlib.metadata.rst:80
127
125
msgid "You can get the version string for ``wheel`` by running the following:"
@@ -134,9 +132,9 @@ msgid ""
134
132
"``distutils.commands`` and others. Each group contains a collection of "
135
133
":ref:`EntryPoint <entry-points>` objects."
136
134
msgstr ""
137
- "你还能够获得可通过 EntryPoint 的特征属性 (通常为 'group' 或 'name') 来选择的入口点多项集,比如 "
138
- "``console_scripts``, ``distutils.commands`` 等等 。 每个 group 包含一个由 "
139
- ":ref:`EntryPoint <entry-points>` 对象组成的多项集。"
135
+ "你还能得到可通过 EntryPoint 的属性 (通常为 'group' 或 'name') 来选择的入口点多项集,比如 "
136
+ "``console_scripts``, ``distutils.commands``。 每个 group 包含一个由 :ref:`EntryPoint "
137
+ " <entry-points>` 对象组成的多项集。"
140
138
141
139
#: ../../library/importlib.metadata.rst:93
142
140
msgid "You can get the :ref:`metadata for a distribution <metadata>`::"
@@ -148,7 +146,7 @@ msgid ""
148
146
":ref:`constituent files <files>`, and get a list of the distribution's "
149
147
":ref:`requirements`."
150
148
msgstr ""
151
- "你也可以获得 :ref:`分发的版本号 <version>`,列出它的 :ref:`构成文件 <files>`,并且得到分发的 "
149
+ "你也可以获得 :ref:`分发包的版本号 <version>`,列出它的 :ref:`构成文件 <files>`,并且得到分发包的 "
152
150
":ref:`requirements` 列表。"
153
151
154
152
#: ../../library/importlib.metadata.rst:104
@@ -157,7 +155,7 @@ msgstr "函数式 API"
157
155
158
156
#: ../../library/importlib.metadata.rst:106
159
157
msgid "This package provides the following functionality via its public API."
160
- msgstr "这个包通过其公共 API 提供了以下功能。"
158
+ msgstr "这个包的公开 API 提供了以下功能。"
161
159
162
160
#: ../../library/importlib.metadata.rst:112
163
161
msgid "Entry points"
@@ -173,8 +171,8 @@ msgid ""
173
171
"attribute."
174
172
msgstr ""
175
173
"``entry_points()`` 函数返回入口点的字典。入口点表现为 ``EntryPoint`` 的实例;每个 ``EntryPoint`` "
176
- "对象都有 ``.name`` ,``.group`` 与 ``.value`` 属性,用于解析值的 ``.load()`` 方法, "
177
- "``.module `` , ``.attr`` 与 ``.extras `` 属性是 ``.value `` 属性的对应部分 。"
174
+ "对象都有 ``.name`` ,``.group`` 与 ``.value`` 属性,用于解析值的 ``.load()`` 方法, 来自 "
175
+ "``.value `` 属性的对应部分的 ``.module``, ``.attr `` 与 ``.extras `` 属性 。"
178
176
179
177
#: ../../library/importlib.metadata.rst:121
180
178
msgid "Query all entry points::"
@@ -264,7 +262,7 @@ msgid ""
264
262
"The keys of the returned data structure, a ``PackageMetadata``, name the "
265
263
"metadata keywords, and the values are returned unparsed from the "
266
264
"distribution metadata::"
267
- msgstr "返回的数据架构 ``PackageMetadata`` 的键代表元数据的关键字,而值从分发的元数据中不被解析地返回:"
265
+ msgstr "返回的数据结构 ``PackageMetadata`` 的键代表元数据的关键字,而值从分发的元数据中不被解析地返回:"
268
266
269
267
#: ../../library/importlib.metadata.rst:203
270
268
msgid ""
@@ -297,7 +295,7 @@ msgstr "添加了 ``json`` 属性。"
297
295
298
296
#: ../../library/importlib.metadata.rst:226
299
297
msgid "Distribution versions"
300
- msgstr "分发的版本 "
298
+ msgstr "分发包的版本 "
301
299
302
300
#: ../../library/importlib.metadata.rst:228
303
301
msgid ""
@@ -311,7 +309,7 @@ msgstr ""
311
309
312
310
#: ../../library/importlib.metadata.rst:239
313
311
msgid "Distribution files"
314
- msgstr "分发的文件 "
312
+ msgstr "分发包的文件 "
315
313
316
314
#: ../../library/importlib.metadata.rst:241
317
315
msgid ""
@@ -354,7 +352,7 @@ msgstr ""
354
352
355
353
#: ../../library/importlib.metadata.rst:286
356
354
msgid "Distribution requirements"
357
- msgstr "分发的依赖 "
355
+ msgstr "分发包的依赖 "
358
356
359
357
#: ../../library/importlib.metadata.rst:288
360
358
msgid ""
@@ -393,7 +391,7 @@ msgstr ""
393
391
394
392
#: ../../library/importlib.metadata.rst:319
395
393
msgid "Distributions"
396
- msgstr "分发 "
394
+ msgstr "分发包对象 "
397
395
398
396
#: ../../library/importlib.metadata.rst:321
399
397
msgid ""
@@ -426,9 +424,9 @@ msgid ""
426
424
"<https://packaging.python.org/en/latest/specifications/core-metadata/#core-"
427
425
"metadata>`_ for additional details."
428
426
msgstr ""
429
- "可用元数据的完整集合并未在此描述。 请参阅 `核心元数据规格说明 "
427
+ "此处并未描述可用元数据的完整集合。详见 `核心元数据规格说明 "
430
428
"<https://packaging.python.org/en/latest/specifications/core-metadata/#core-"
431
- "metadata>`_ 了解更多细节 。"
429
+ "metadata>`_。"
432
430
433
431
#: ../../library/importlib.metadata.rst:349
434
432
msgid "Distribution Discovery"
0 commit comments