1
1
# SOME DESCRIPTIVE TITLE.
2
- # Copyright (C) 2001-2023 , Python Software Foundation
2
+ # Copyright (C) 2001-2024 , Python Software Foundation
3
3
# This file is distributed under the same license as the Python package.
4
4
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
5
5
#
6
6
# Translators:
7
- # Rafael Fontenelle <rffontenelle@gmail.com>, 2023
7
+ # Rafael Fontenelle <rffontenelle@gmail.com>, 2024
8
8
#
9
9
#, fuzzy
10
10
msgid ""
11
11
msgstr ""
12
12
"Project-Id-Version : Python 3.11\n "
13
13
"Report-Msgid-Bugs-To : \n "
14
- "POT-Creation-Date : 2023-12-08 16:33 +0000\n "
14
+ "POT-Creation-Date : 2024-06-28 15:23 +0000\n "
15
15
"PO-Revision-Date : 2023-05-24 02:16+0000\n "
16
- "Last-Translator : Rafael Fontenelle <rffontenelle@gmail.com>, 2023 \n "
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 "
18
18
"MIME-Version : 1.0\n "
19
19
"Content-Type : text/plain; charset=UTF-8\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 ""
@@ -90,8 +90,7 @@ msgid ""
90
90
"archives on :data:`sys.path`. Through an extension mechanism, the metadata "
91
91
"can live almost anywhere."
92
92
msgstr ""
93
- "在默认情况下,分发包元数据可以存在于 :data:`sys.path` 下的文件系统或 zip 归档文件中。 "
94
- "通过一个扩展机制,元数据可以存在于几乎任何地方。"
93
+ "分发包元数据默认可存在于 :data:`sys.path` 下的文件系统或 zip 归档文件中。通过一个扩展机制,元数据可以存在于几乎任何地方。"
95
94
96
95
#: ../../library/importlib.metadata.rst:62
97
96
msgid "https://importlib-metadata.readthedocs.io/"
@@ -106,10 +105,9 @@ msgid ""
106
105
"metadata.readthedocs.io/en/latest/migration.html>`__ for existing users of "
107
106
"``pkg_resources``."
108
107
msgstr ""
109
- "``importlib_metadata`` 的文档,它提供了对 ``importlib.metadata`` 的向下移植。 这包含该模块的类和函数的 "
110
- "`API 引用 <https://importlib-"
111
- "metadata.readthedocs.io/en/latest/api.html>`__,以及针对 ``pkg_resources`` 现有用户的 "
112
- "`迁移指南 <https://importlib-"
108
+ "``importlib_metadata`` 的文档,它向下移植了 ``importlib.metadata``。它包含该模块的类和函数的 `API "
109
+ "参考 <https://importlib-metadata.readthedocs.io/en/latest/api.html>`__,以及针对 "
110
+ "``pkg_resources`` 现有用户的 `迁移指南 <https://importlib-"
113
111
"metadata.readthedocs.io/en/latest/migration.html>`__。"
114
112
115
113
#: ../../library/importlib.metadata.rst:67
@@ -125,7 +123,7 @@ msgid ""
125
123
msgstr ""
126
124
"让我们假设你想要获取你使用 ``pip`` 安装的某个 `分发包 "
127
125
"<https://packaging.python.org/en/latest/glossary/#term-Distribution-"
128
- "Package>`_ 的版本字符串。 我们首先创建一个虚拟环境并在其中安装一些软件包: "
126
+ "Package>`_ 的版本字符串。我们首先创建一个虚拟环境并在其中安装一些软件包: "
129
127
130
128
#: ../../library/importlib.metadata.rst:80
131
129
msgid "You can get the version string for ``wheel`` by running the following:"
@@ -138,9 +136,9 @@ msgid ""
138
136
"``distutils.commands`` and others. Each group contains a collection of "
139
137
":ref:`EntryPoint <entry-points>` objects."
140
138
msgstr ""
141
- "你还能够获得可通过 EntryPoint 的特征属性 (通常为 'group' 或 'name') 来选择的入口点多项集,比如 "
142
- "``console_scripts``, ``distutils.commands`` 等等 。 每个 group 包含一个由 "
143
- ":ref:`EntryPoint <entry-points>` 对象组成的多项集。"
139
+ "你还能得到可通过 EntryPoint 的属性 (通常为 'group' 或 'name') 来选择的入口点多项集,比如 "
140
+ "``console_scripts``, ``distutils.commands``。 每个 group 包含一个由 :ref:`EntryPoint "
141
+ " <entry-points>` 对象组成的多项集。"
144
142
145
143
#: ../../library/importlib.metadata.rst:93
146
144
msgid "You can get the :ref:`metadata for a distribution <metadata>`::"
@@ -152,7 +150,7 @@ msgid ""
152
150
":ref:`constituent files <files>`, and get a list of the distribution's "
153
151
":ref:`requirements`."
154
152
msgstr ""
155
- "你也可以获得 :ref:`分发的版本号 <version>`,列出它的 :ref:`构成文件 <files>`,并且得到分发的 "
153
+ "你也可以获得 :ref:`分发包的版本号 <version>`,列出它的 :ref:`构成文件 <files>`,并且得到分发包的 "
156
154
":ref:`requirements` 列表。"
157
155
158
156
#: ../../library/importlib.metadata.rst:104
@@ -161,7 +159,7 @@ msgstr "函数式 API"
161
159
162
160
#: ../../library/importlib.metadata.rst:106
163
161
msgid "This package provides the following functionality via its public API."
164
- msgstr "这个包通过其公共 API 提供了以下功能。"
162
+ msgstr "这个包的公开 API 提供了以下功能。"
165
163
166
164
#: ../../library/importlib.metadata.rst:112
167
165
msgid "Entry points"
@@ -177,8 +175,8 @@ msgid ""
177
175
"attribute."
178
176
msgstr ""
179
177
"``entry_points()`` 函数返回入口点的字典。入口点表现为 ``EntryPoint`` 的实例;每个 ``EntryPoint`` "
180
- "对象都有 ``.name`` ,``.group`` 与 ``.value`` 属性,用于解析值的 ``.load()`` 方法, "
181
- "``.module `` , ``.attr`` 与 ``.extras `` 属性是 ``.value `` 属性的对应部分 。"
178
+ "对象都有 ``.name`` ,``.group`` 与 ``.value`` 属性,用于解析值的 ``.load()`` 方法, 来自 "
179
+ "``.value `` 属性的对应部分的 ``.module``, ``.attr `` 与 ``.extras `` 属性 。"
182
180
183
181
#: ../../library/importlib.metadata.rst:121
184
182
msgid "Query all entry points::"
@@ -266,7 +264,7 @@ msgid ""
266
264
"The keys of the returned data structure, a ``PackageMetadata``, name the "
267
265
"metadata keywords, and the values are returned unparsed from the "
268
266
"distribution metadata::"
269
- msgstr "返回的数据架构 ``PackageMetadata`` 的键代表元数据的关键字,而值从分发的元数据中不被解析地返回:"
267
+ msgstr "返回的数据结构 ``PackageMetadata`` 的键代表元数据的关键字,而值从分发的元数据中不被解析地返回:"
270
268
271
269
#: ../../library/importlib.metadata.rst:204
272
270
msgid ""
@@ -297,11 +295,11 @@ msgstr "当有效载荷中包含时,``Description`` 以去除续行符的形
297
295
msgid "The ``json`` attribute was added."
298
296
msgstr "添加了 ``json`` 属性。"
299
297
300
- #: ../../library/importlib.metadata.rst:228
298
+ #: ../../library/importlib.metadata.rst:227
301
299
msgid "Distribution versions"
302
- msgstr "分发的版本 "
300
+ msgstr "分发包的版本 "
303
301
304
- #: ../../library/importlib.metadata.rst:230
302
+ #: ../../library/importlib.metadata.rst:229
305
303
msgid ""
306
304
"The ``version()`` function is the quickest way to get a `Distribution "
307
305
"Package <https://packaging.python.org/en/latest/glossary/#term-Distribution-"
@@ -311,11 +309,11 @@ msgstr ""
311
309
"<https://packaging.python.org/en/latest/glossary/#term-Distribution-"
312
310
"Package>`_ 的版本号::"
313
311
314
- #: ../../library/importlib.metadata.rst:241
312
+ #: ../../library/importlib.metadata.rst:240
315
313
msgid "Distribution files"
316
- msgstr "分发的文件 "
314
+ msgstr "分发包的文件 "
317
315
318
- #: ../../library/importlib.metadata.rst:243
316
+ #: ../../library/importlib.metadata.rst:242
319
317
msgid ""
320
318
"You can also get the full set of files contained within a distribution. The"
321
319
" ``files()`` function takes a `Distribution Package "
@@ -330,17 +328,17 @@ msgstr ""
330
328
"Package>`_ 名称并返回此分发包所安装的全部文件。 每个返回的文件对象都是一个 ``PackagePath``,即带有由元数据指明的额外 "
331
329
"``dist``, ``size`` 和 ``hash`` 特征属性的派生自 :class:`pathlib.PurePath` 的对象。 例如::"
332
330
333
- #: ../../library/importlib.metadata.rst:260
331
+ #: ../../library/importlib.metadata.rst:259
334
332
msgid "Once you have the file, you can also read its contents::"
335
333
msgstr "当你获得了文件对象,你可以读取其内容:"
336
334
337
- #: ../../library/importlib.metadata.rst:271
335
+ #: ../../library/importlib.metadata.rst:270
338
336
msgid ""
339
337
"You can also use the ``locate`` method to get a the absolute path to the "
340
338
"file::"
341
339
msgstr "你也可以使用 ``locate`` 方法来获得文件的绝对路径:"
342
340
343
- #: ../../library/importlib.metadata.rst:277
341
+ #: ../../library/importlib.metadata.rst:276
344
342
msgid ""
345
343
"In the case where the metadata file listing files (RECORD or SOURCES.txt) is"
346
344
" missing, ``files()`` will return ``None``. The caller may wish to wrap "
@@ -354,11 +352,11 @@ msgstr ""
354
352
"itertools.readthedocs.io/en/stable/api.html#more_itertools.always_iterable>`_"
355
353
" 中,或者用其他方法来应对目标分发元数据存在性未知的情况。"
356
354
357
- #: ../../library/importlib.metadata.rst:288
355
+ #: ../../library/importlib.metadata.rst:287
358
356
msgid "Distribution requirements"
359
- msgstr "分发的依赖 "
357
+ msgstr "分发包的依赖 "
360
358
361
- #: ../../library/importlib.metadata.rst:290
359
+ #: ../../library/importlib.metadata.rst:289
362
360
msgid ""
363
361
"To get the full set of requirements for a `Distribution Package "
364
362
"<https://packaging.python.org/en/latest/glossary/#term-Distribution-"
@@ -367,11 +365,11 @@ msgstr ""
367
365
"要获取一个 `分发包 <https://packaging.python.org/en/latest/glossary/#term-"
368
366
"Distribution-Package>`_ 的完整需求集合,请使用 ``requires()`` 函数::"
369
367
370
- #: ../../library/importlib.metadata.rst:302
368
+ #: ../../library/importlib.metadata.rst:301
371
369
msgid "Mapping import to distribution packages"
372
370
msgstr "将导入映射到分发包"
373
371
374
- #: ../../library/importlib.metadata.rst:304
372
+ #: ../../library/importlib.metadata.rst:303
375
373
msgid ""
376
374
"A convenience method to resolve the `Distribution Package "
377
375
"<https://packaging.python.org/en/latest/glossary/#term-Distribution-"
@@ -384,11 +382,11 @@ msgstr ""
384
382
" `分发包 <https://packaging.python.org/en/latest/glossary/#term-Distribution-"
385
383
"Package>`_ 名称(对于命名空间包可能有多个名称)的快捷方法::"
386
384
387
- #: ../../library/importlib.metadata.rst:317
385
+ #: ../../library/importlib.metadata.rst:316
388
386
msgid "Distributions"
389
- msgstr "分发 "
387
+ msgstr "分发包对象 "
390
388
391
- #: ../../library/importlib.metadata.rst:319
389
+ #: ../../library/importlib.metadata.rst:318
392
390
msgid ""
393
391
"While the above API is the most common and convenient usage, you can get all"
394
392
" of that information from the ``Distribution`` class. A ``Distribution`` is"
@@ -400,34 +398,34 @@ msgstr ""
400
398
"Python `分发包 <https://packaging.python.org/en/latest/glossary/#term-"
401
399
"Distribution-Package>`_ 元数据的抽象对象。 你可以这样获取 ``Distribution`` 实例::"
402
400
403
- #: ../../library/importlib.metadata.rst:328
401
+ #: ../../library/importlib.metadata.rst:327
404
402
msgid ""
405
403
"Thus, an alternative way to get the version number is through the "
406
404
"``Distribution`` instance::"
407
405
msgstr "因此,可以通过 ``Distribution`` 实例获得版本号:"
408
406
409
- #: ../../library/importlib.metadata.rst:334
407
+ #: ../../library/importlib.metadata.rst:333
410
408
msgid ""
411
409
"There are all kinds of additional metadata available on the ``Distribution``"
412
410
" instance::"
413
411
msgstr "``Distribution`` 实例具有所有可用的附加元数据:"
414
412
415
- #: ../../library/importlib.metadata.rst:342
413
+ #: ../../library/importlib.metadata.rst:341
416
414
msgid ""
417
415
"The full set of available metadata is not described here. See the `Core "
418
416
"metadata specifications "
419
417
"<https://packaging.python.org/en/latest/specifications/core-metadata/#core-"
420
418
"metadata>`_ for additional details."
421
419
msgstr ""
422
- "可用元数据的完整集合并未在此描述。 请参阅 `核心元数据规格说明 "
420
+ "此处并未描述可用元数据的完整集合。详见 `核心元数据规格说明 "
423
421
"<https://packaging.python.org/en/latest/specifications/core-metadata/#core-"
424
- "metadata>`_ 了解更多细节 。"
422
+ "metadata>`_。"
425
423
426
- #: ../../library/importlib.metadata.rst:347
424
+ #: ../../library/importlib.metadata.rst:346
427
425
msgid "Distribution Discovery"
428
426
msgstr "分发包的发现"
429
427
430
- #: ../../library/importlib.metadata.rst:349
428
+ #: ../../library/importlib.metadata.rst:348
431
429
msgid ""
432
430
"By default, this package provides built-in support for discovery of metadata"
433
431
" for file system and zip file `Distribution Package "
@@ -441,25 +439,25 @@ msgstr ""
441
439
"Package>`_ 的元数据发现提供了内置支持。 这个元数据查找器的搜索目标默认为 "
442
440
"``sys.path``,但它对来自其他导入机制行为方式的解读会略有变化。 特别地:"
443
441
444
- #: ../../library/importlib.metadata.rst:353
442
+ #: ../../library/importlib.metadata.rst:352
445
443
msgid ""
446
444
"``importlib.metadata`` does not honor :class:`bytes` objects on "
447
445
"``sys.path``."
448
446
msgstr "``importlib.metadata`` 不会识别 ``sys.path`` 上的 :class:`bytes` 对象。"
449
447
450
- #: ../../library/importlib.metadata.rst:354
448
+ #: ../../library/importlib.metadata.rst:353
451
449
msgid ""
452
450
"``importlib.metadata`` will incidentally honor :py:class:`pathlib.Path` "
453
451
"objects on ``sys.path`` even though such values will be ignored for imports."
454
452
msgstr ""
455
453
"``importlib.metadata`` 将顺带识别 ``sys.path`` 上的 :py:class:`pathlib.Path` "
456
454
"对象,即使这些值会被导入操作所忽略。"
457
455
458
- #: ../../library/importlib.metadata.rst:358
456
+ #: ../../library/importlib.metadata.rst:357
459
457
msgid "Extending the search algorithm"
460
458
msgstr "扩展搜索算法"
461
459
462
- #: ../../library/importlib.metadata.rst:360
460
+ #: ../../library/importlib.metadata.rst:359
463
461
msgid ""
464
462
"Because `Distribution Package "
465
463
"<https://packaging.python.org/en/latest/glossary/#term-Distribution-"
@@ -470,7 +468,7 @@ msgid ""
470
468
"path finder>` on :data:`sys.meta_path`."
471
469
msgstr ""
472
470
473
- #: ../../library/importlib.metadata.rst:368
471
+ #: ../../library/importlib.metadata.rst:367
474
472
msgid ""
475
473
"By default ``importlib.metadata`` installs a finder for distribution "
476
474
"packages found on the file system. This finder doesn't actually find any "
@@ -479,7 +477,7 @@ msgstr ""
479
477
"在默认情况下 ``importlib.metadata`` 会安装在文件系统中找到的分发包的查找器。 这个查找器无法真正找出任何 "
480
478
"*分发包*,但它能找到它们的元数据。"
481
479
482
- #: ../../library/importlib.metadata.rst:373
480
+ #: ../../library/importlib.metadata.rst:372
483
481
msgid ""
484
482
"The abstract class :py:class:`importlib.abc.MetaPathFinder` defines the "
485
483
"interface expected of finders by Python's import system. "
@@ -493,7 +491,7 @@ msgstr ""
493
491
"``find_distributions`` 可调用的属性扩展这个协议,并将这个扩展接口作为 ``DistributionFinder`` "
494
492
"抽象基类提供,它定义了这个抽象方法:"
495
493
496
- #: ../../library/importlib.metadata.rst:387
494
+ #: ../../library/importlib.metadata.rst:386
497
495
msgid ""
498
496
"The ``DistributionFinder.Context`` object provides ``.path`` and ``.name`` "
499
497
"properties indicating the path to search and name to match and may supply "
@@ -502,7 +500,7 @@ msgstr ""
502
500
"``DistributionFinder.Context`` 对象提供了指示搜索路径和匹配名称的属性 ``.path`` 和 ``.name`` "
503
501
",也可能提供其他相关的上下文。"
504
502
505
- #: ../../library/importlib.metadata.rst:391
503
+ #: ../../library/importlib.metadata.rst:390
506
504
msgid ""
507
505
"What this means in practice is that to support finding distribution package "
508
506
"metadata in locations other than the file system, subclass ``Distribution`` "
0 commit comments