🌐 AI搜索 & 代理 主页
Skip to content

Commit 3f9eb30

Browse files
[po] auto sync
1 parent 68a8271 commit 3f9eb30

File tree

13 files changed

+102
-35
lines changed

13 files changed

+102
-35
lines changed

.stat.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"translation": "82.28%", "updated_at": "2025-09-23T06:51:09Z"}
1+
{"translation": "82.33%", "updated_at": "2025-09-23T11:46:15Z"}

howto/descriptor.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# python-doc bot, 2025
89
#
910
#, fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version: Python 3.12\n"
1314
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-07-25 16:03+0000\n"
15+
"POT-Creation-Date: 2025-09-22 19:59+0000\n"
1516
"PO-Revision-Date: 2025-07-18 19:57+0000\n"
16-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: python-doc bot, 2025\n"
1718
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -2067,6 +2068,9 @@ msgid ""
20672068
"decorators. For example, a classmethod and property could be chained "
20682069
"together. In Python 3.11, this functionality was deprecated."
20692070
msgstr ""
2071+
"``hasattr(type(self.f), '__get__')`` 的代码路径在 Python 3.9 中被加入并使 "
2072+
":func:`classmethod` 可以支持链式装饰器。 例如,一个类方法和特性属性可以被链接到一起。 在 Python 3.11 "
2073+
"中,此功能已被弃用。"
20702074

20712075
#: ../../howto/descriptor.rst:1531
20722076
msgid ""

library/asyncio-task.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ msgstr ""
605605
msgid ""
606606
"Create a task in this task group. The signature matches that of "
607607
":func:`asyncio.create_task`."
608-
msgstr ""
608+
msgstr "在该任务组中创建一个任务。 其签名与 :func:`asyncio.create_task` 的相匹配。"
609609

610610
#: ../../library/asyncio-task.rst:338 ../../library/asyncio-task.rst:520
611611
#: ../../library/asyncio-task.rst:693 ../../library/asyncio-task.rst:751
@@ -1543,7 +1543,7 @@ msgstr ""
15431543
msgid ""
15441544
"Raises :exc:`TimeoutError` if the timeout occurs before all Futures are "
15451545
"done."
1546-
msgstr ""
1546+
msgstr "如果在所有 Future 对象完成之前发生超时则将引发 :exc:`TimeoutError`。"
15471547

15481548
#: ../../library/asyncio-task.rst:920
15491549
msgid ""

library/enum.po

Lines changed: 23 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# python-doc bot, 2025
89
#
910
#, fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version: Python 3.12\n"
1314
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-07-25 16:03+0000\n"
15+
"POT-Creation-Date: 2025-09-22 19:59+0000\n"
1516
"PO-Revision-Date: 2025-07-18 19:58+0000\n"
16-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: python-doc bot, 2025\n"
1718
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -343,6 +344,8 @@ msgid ""
343344
"the final *enum*, as well as creating the enum members, properly handling "
344345
"duplicates, providing iteration over the enum class, etc."
345346
msgstr ""
347+
"*EnumType* 负责在最终的 *enum* 上设置正确的 :meth:`!__repr__` 、:meth:`!__str__` "
348+
"、:meth:`!__format__` 和 :meth:`!__reduce__` 方法,如以及创建枚举成员、正确处理重复项、提供枚举类的迭代等。"
346349

347350
#: ../../library/enum.rst:175
348351
msgid "This method is called in two different ways:"
@@ -524,7 +527,7 @@ msgstr ""
524527
#: ../../library/enum.rst:251
525528
msgid ""
526529
"Before 3.11 ``enum`` used ``EnumMeta`` type, which is kept as an alias."
527-
msgstr ""
530+
msgstr "在 3.11 之前 ``enum`` 使用 ``EnumMeta`` 类型,它被作为别名保留。"
528531

529532
#: ../../library/enum.rst:256
530533
msgid "*Enum* is the base class for all *enum* enumerations."
@@ -892,6 +895,8 @@ msgid ""
892895
"performed with an *IntEnum* member, the resulting value loses its "
893896
"enumeration status."
894897
msgstr ""
898+
"*IntEnum* 与 *Enum* 是一样的,但其成员还属于整数并可被用在任何可以使用整数的地方。 如果对一个 *IntEnum* "
899+
"成员执行整数运算,结果值将失去其枚举状态。"
895900

896901
#: ../../library/enum.rst:482
897902
msgid ""
@@ -915,6 +920,8 @@ msgid ""
915920
"any string operation performed on or with a *StrEnum* member is not part of "
916921
"the enumeration."
917922
msgstr ""
923+
"*StrEnum* 与 *Enum* 是一样的,但其成员还属于字符串并可被用在任何可以使用字符串的地方。 对一个 *StrEnum* "
924+
"成员执行字符串操作的结果将不是该枚举的一部分。"
918925

919926
#: ../../library/enum.rst:498
920927
msgid ""
@@ -1091,7 +1098,7 @@ msgstr ""
10911098

10921099
#: ../../library/enum.rst:604
10931100
msgid "Returns all the flags in *type(self)* that are not in self::"
1094-
msgstr ""
1101+
msgstr "返回 *type(self)* 中所有不在 self 中的旗标::"
10951102

10961103
#: ../../library/enum.rst:606
10971104
msgid ""
@@ -1129,7 +1136,7 @@ msgstr "零值旗标的 *repr()* 已被修改。 现在将是::"
11291136
msgid ""
11301137
"*IntFlag* is the same as *Flag*, but its members are also integers and can "
11311138
"be used anywhere that an integer can be used."
1132-
msgstr ""
1139+
msgstr "*IntFlag* 与 *Flag* 相同,但其成员还属于整数类型并能被用于任何可以使用整数的地方。"
11331140

11341141
#: ../../library/enum.rst:645
11351142
msgid ""
@@ -1147,7 +1154,7 @@ msgstr ""
11471154

11481155
#: ../../library/enum.rst:651
11491156
msgid "If a *Flag* operation is performed with an *IntFlag* member and:"
1150-
msgstr ""
1157+
msgstr "如果对一个 *IntFlag* 成员执行 *Flag* 操作并且:"
11511158

11521159
#: ../../library/enum.rst:653
11531160
msgid "the result is a valid *IntFlag*: an *IntFlag* is returned"
@@ -1157,11 +1164,11 @@ msgstr "结果是一个合法的 *IntFlag*: 将返回一个 *IntFlag*"
11571164
msgid ""
11581165
"the result is not a valid *IntFlag*: the result depends on the "
11591166
"*FlagBoundary* setting"
1160-
msgstr ""
1167+
msgstr "结果不是一个合法的 *IntFlag*: 结果将取决于 *FlagBoundary* 设置"
11611168

11621169
#: ../../library/enum.rst:656
11631170
msgid "The *repr()* of unnamed zero-valued flags has changed. It is now:"
1164-
msgstr ""
1171+
msgstr "未命名零值旗标的 *repr()* 已被修改。 现在将是:"
11651172

11661173
#: ../../library/enum.rst:663
11671174
msgid ""
@@ -1317,7 +1324,7 @@ msgstr "CONTINUOUS 和 NAMED_FLAGS 被设计用于配合整数值成员。"
13171324
msgid ""
13181325
"*FlagBoundary* controls how out-of-range values are handled in *Flag* and "
13191326
"its subclasses."
1320-
msgstr ""
1327+
msgstr "*FlagBoundary* 控制在 *Flag* 及其子类中如何处理超出范围的值。"
13211328

13221329
#: ../../library/enum.rst:757
13231330
msgid ""
@@ -1357,7 +1364,7 @@ msgstr ""
13571364
msgid ""
13581365
"Out-of-range values have invalid values removed, leaving a valid *Flag* "
13591366
"value::"
1360-
msgstr ""
1367+
msgstr "超出范围的值将导致无效的值被移除,保留有效的 *Flag* 值::"
13611368

13621369
#: ../../library/enum.rst:778
13631370
msgid ""
@@ -1382,13 +1389,13 @@ msgstr ""
13821389
#: ../../library/enum.rst:789
13831390
msgid ""
13841391
"Out-of-range values lose their *Flag* membership and revert to :class:`int`."
1385-
msgstr ""
1392+
msgstr "超出范围的值将失去它们的 *Flag* 成员属性并转换为 :class:`int`。"
13861393

13871394
#: ../../library/enum.rst:802
13881395
msgid ""
13891396
"Out-of-range values are kept, and the *Flag* membership is kept. This is the"
13901397
" default for :class:`IntFlag`::"
1391-
msgstr ""
1398+
msgstr "超出范围的值将被保留,*Flag* 成员属性也将被保留。 这是 :class:`IntFlag` 的默认设置::"
13921399

13931400
#: ../../library/enum.rst:805
13941401
msgid ""
@@ -1503,6 +1510,10 @@ msgid ""
15031510
"version of the member's name. Care must be taken if mixing *auto()* with "
15041511
"manually specified values."
15051512
msgstr ""
1513+
"*auto* 可被用来替换某个值。 如果使用,*Enum* 机制将调用一个 *Enum* 的 "
1514+
":meth:`~Enum._generate_next_value_` 来获取适当的值。 对于 *Enum* 和 *IntEnum* "
1515+
"这个适当的值将为最近的值加一;对于 *Flag* 和 *IntFlag* 它将为大于最大的值的最大的二的整数次方;对于 *StrEnum* "
1516+
"它将为成员名称的小写版本。 如果将 *auto()* 与手动指定的值混用则必须十分小心。"
15061517

15071518
#: ../../library/enum.rst:870
15081519
msgid ""

library/importlib.metadata.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# python-doc bot, 2025
89
#
910
#, fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version: Python 3.12\n"
1314
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-07-25 16:03+0000\n"
15+
"POT-Creation-Date: 2025-09-22 19:59+0000\n"
1516
"PO-Revision-Date: 2025-07-18 19:58+0000\n"
16-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: python-doc bot, 2025\n"
1718
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -79,6 +80,9 @@ msgid ""
7980
":ref:`package_distributions() <package-distributions>` to get a mapping "
8081
"between them."
8182
msgstr ""
83+
"这些 *并不* 必须等同于或 1:1 对应于可在 Python 代码中导入的最高层级 *导入包* 名称。 一个 *分发包* 可以包含多个 *导入包* "
84+
"(和单独模块),而一个最高层级 *导入包* 如果是命名空间包则可以映射到多个 *分发包*。 你可以使用 "
85+
":ref:`package_distributions() <package-distributions>` 来获取它们之间的映射关系。"
8286

8387
#: ../../library/importlib.metadata.rst:47
8488
msgid ""

library/inspect.po

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# python-doc bot, 2025
89
#
910
#, fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version: Python 3.12\n"
1314
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-07-25 16:03+0000\n"
15+
"POT-Creation-Date: 2025-09-22 19:59+0000\n"
1516
"PO-Revision-Date: 2025-07-18 19:58+0000\n"
16-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: python-doc bot, 2025\n"
1718
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -1191,6 +1192,7 @@ msgid ""
11911192
":class:`!Signature` objects are *immutable*. Use :meth:`Signature.replace` "
11921193
"to make a modified copy."
11931194
msgstr ""
1195+
":class:`!Signature` 对象是 *不可变* 对象。 使用 :meth:`Signature.replace` 来创建修改后的副本。"
11941196

11951197
#: ../../library/inspect.rst:742
11961198
msgid ":class:`!Signature` objects are now picklable and :term:`hashable`."
@@ -1302,6 +1304,8 @@ msgid ""
13021304
":class:`!Parameter` object, you can use :meth:`Parameter.replace` to create "
13031305
"a modified copy."
13041306
msgstr ""
1307+
":class:`!Parameter` 对象是 *不可变* 对象。 不要直接修改 :class:`!Parameter` 对象,请可以使用 "
1308+
":meth:`Parameter.replace` 创建一个修改后的副本。"
13051309

13061310
#: ../../library/inspect.rst:826
13071311
msgid "Parameter objects are now picklable and :term:`hashable`."

library/os.path.po

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -469,6 +469,8 @@ msgid ""
469469
"exist, is a symlink loop, or whose evaluation raises :exc:`OSError`. All "
470470
"such components are appended unchanged to the existing part of the path."
471471
msgstr ""
472+
"在默认情况下,对路径的求值将执行至第一个不存在的、导致符号链接循环的,或者求值引发 :exc:`OSError` 的路径组件。 "
473+
"所有这样的组件将不经修改地添加到现有的路径组件。"
472474

473475
#: ../../library/os.path.rst:384
474476
msgid ""
@@ -477,10 +479,12 @@ msgid ""
477479
"path may be missing or inaccessible, may still contain links or loops, and "
478480
"may traverse non-directories."
479481
msgstr ""
482+
"会以这种方式来处理的错误包括 \"access denied\", \"not a directory\"\"bad argument to "
483+
"internal function\"。 因此,结果路径可能不存在或不可访问,可能仍然包含链接或循环,并可能遍历至非目录。"
480484

481485
#: ../../library/os.path.rst:389
482486
msgid "This behavior can be modified by keyword arguments:"
483-
msgstr ""
487+
msgstr "此行为可通过关键字参数来修改:"
484488

485489
#: ../../library/os.path.rst:391
486490
msgid ""
@@ -489,6 +493,8 @@ msgid ""
489493
"*path* does not exist, or another :exc:`OSError` if it is otherwise "
490494
"inaccessible."
491495
msgstr ""
496+
"如果 *strict* 为 ``True``,则在对路径求值时遇到的第一个错误将被重新引发。 具体来说,如果 *path* 不存在则会引发 "
497+
":exc:`FileNotFoundError`,或者如果因其他原因而不可访问则会引发 :exc:`OSError`。"
492498

493499
#: ../../library/os.path.rst:396
494500
msgid ""
@@ -497,6 +503,9 @@ msgid ""
497503
"returned path will not contain any symbolic links, but the named file and "
498504
"some of its parent directories may be missing."
499505
msgstr ""
506+
"如果 *strict* 为 :py:data:`os.path.ALLOW_MISSING`,则 :exc:`FileNotFoundError` "
507+
"以外的错误将被重新引发(就像设置 ``strict=True`` 一样)。 "
508+
"因此,返回的路径将不包含任何符号链接,但指定名称的文件及其某些上级目录可能会不存在。"
500509

501510
#: ../../library/os.path.rst:402
502511
msgid ""
@@ -523,11 +532,11 @@ msgstr "增加了 *strict* 形参。"
523532
msgid ""
524533
"The :py:data:`~os.path.ALLOW_MISSING` value for the *strict* parameter was "
525534
"added."
526-
msgstr ""
535+
msgstr "增加了用于 *strict* 形参的 :py:data:`~os.path.ALLOW_MISSING` 值。"
527536

528537
#: ../../library/os.path.rst:424
529538
msgid "Special value used for the *strict* argument in :func:`realpath`."
530-
msgstr ""
539+
msgstr "用于 :func:`realpath` 中 *strict* 参数的特殊值。"
531540

532541
#: ../../library/os.path.rst:430
533542
msgid ""

library/pathlib.po

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1958,6 +1958,7 @@ msgid ""
19581958
"Return only directories if *pattern* ends with a pathname components "
19591959
"separator (:data:`~os.sep` or :data:`~os.altsep`)."
19601960
msgstr ""
1961+
"如果 *pattern* 以一个路径名称部分的分隔符结束 (:data:`~os.sep` 或 :data:`~os.altsep`) 则只返回目录。"
19611962

19621963
#: ../../library/pathlib.rst:1218
19631964
msgid ""

library/runpy.po

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,9 @@ msgid ""
195195
":mod:`__main__` module (e.g. a zipfile containing a top-level "
196196
"``__main__.py`` file)."
197197
msgstr ""
198+
"执行指定文件系统位置上���代码并返回结果模块的 globals 字典。 与提供给 CPython 命令行的脚本名称一样,所提供的路径可以指向 Python"
199+
" 源文件、编译后的字节码文件或包含 :mod:`__main__` 模块的有效 :data:`sys.path` 条目(例如一个包含最高层级 "
200+
"``__main__.py`` 文件的 zip 文件)。"
198201

199202
#: ../../library/runpy.rst:113
200203
msgid ""
@@ -247,6 +250,10 @@ msgid ""
247250
"``__file__``, ``__cached__``, ``__loader__`` and ``__package__`` will be "
248251
":ref:`set as normal <import-mod-attrs>` based on the module spec."
249252
msgstr ""
253+
"如果给出的路径是对有效 :data:`sys.path` 条目的引用,那么 ``__spec__`` 将为导入的 :mod:`__main__` "
254+
"模块进行正确设置 (也就是说,``__spec__.name`` 将总是为 ``__main__``)。 ``__file__``, "
255+
"``__cached__``, ``__loader__`` 和 ``__package__`` 将依据模块规格说明 :ref:`正常设置 "
256+
"<import-mod-attrs>`。"
250257

251258
#: ../../library/runpy.rst:147
252259
msgid ""
@@ -257,6 +264,9 @@ msgid ""
257264
"modifications to items in :mod:`sys` are reverted before the function "
258265
"returns."
259266
msgstr ""
267+
":mod:`sys` 模块也进行了多处发动。 首先,:data:`sys.path` 可能做上文所述的修改。 ``sys.argv[0]`` 会使用 "
268+
"``path_name`` 的值进行更新而 ``sys.modules[__name__]`` 会使用对应于正在被执行的模块的临时模块对象进行更新。 "
269+
"在函数返回之前对 :mod:`sys` 中条目的所有修改都会被复原。"
260270

261271
#: ../../library/runpy.rst:154
262272
msgid ""

library/signal.po

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,16 @@
55
#
66
# Translators:
77
# Rafael Fontenelle <rffontenelle@gmail.com>, 2025
8+
# python-doc bot, 2025
89
#
910
#, fuzzy
1011
msgid ""
1112
msgstr ""
1213
"Project-Id-Version: Python 3.12\n"
1314
"Report-Msgid-Bugs-To: \n"
14-
"POT-Creation-Date: 2025-07-25 16:03+0000\n"
15+
"POT-Creation-Date: 2025-09-22 19:59+0000\n"
1516
"PO-Revision-Date: 2025-07-18 19:58+0000\n"
16-
"Last-Translator: Rafael Fontenelle <rffontenelle@gmail.com>, 2025\n"
17+
"Last-Translator: python-doc bot, 2025\n"
1718
"Language-Team: Chinese (China) (https://app.transifex.com/python-doc/teams/5390/zh_CN/)\n"
1819
"MIME-Version: 1.0\n"
1920
"Content-Type: text/plain; charset=UTF-8\n"
@@ -66,6 +67,8 @@ msgid ""
6667
"are emulated and therefore behave differently. Several functions and signals"
6768
" are not available on these platforms."
6869
msgstr ""
70+
"在 WebAssembly 平台 ``wasm32-emscripten`` 和 ``wasm32-wasi`` "
71+
"上,信号是通过模拟实现的因而其行为有所不同。 某些函数和信号在这些平台上将不可用。"
6972

7073
#: ../../library/signal.rst:34
7174
msgid "Execution of Python signal handlers"

0 commit comments

Comments
 (0)